Add GuestContext for managing guest-related state
Some checks failed
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Has been skipped
Build and Push Docker Images / build-frontend (push) Failing after 51s

Introduced a new GuestContext with accompanying provider to handle guest-related data, including fetching, creating, updating, and deleting guests. Integrated GuestsProvider into the application's data provider hierarchy to ensure guest data is accessible across components.
This commit is contained in:
2025-03-15 21:45:16 +01:00
parent 90f49f99c6
commit 445d644538
4 changed files with 221 additions and 1 deletions

View File

@@ -2,12 +2,15 @@ import React from "react";
import { EventsProvider } from "@/context/event-context";
import { EventThemesProvider } from "@/context/event-theme-context";
import { RSVPProvider } from "@/context/rsvp-context";
import { GuestsProvider } from "@/context/guest-context";
export function DataProviders({ children }: { children: React.ReactNode }) {
return (
<EventThemesProvider>
<EventsProvider>
<RSVPProvider>{children}</RSVPProvider>
<GuestsProvider>
<RSVPProvider>{children}</RSVPProvider>
</GuestsProvider>
</EventsProvider>
</EventThemesProvider>
);