Skip to content

Commit

Permalink
wrapping query provider
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Oct 31, 2024
1 parent 5143a9f commit 956b087
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/events/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import client from "@/tina/client";
import { TinaClient } from "app/tina-client";

import { QueryProvider } from "app/providers/query-provider";
import { TODAY } from "hooks/useFetchEvents";
import { useSEO } from "hooks/useSeo";
import { Metadata } from "next";
Expand Down Expand Up @@ -61,5 +62,9 @@ const getData = async () => {
export default async function EventPage() {
const { props } = await getData();

return <TinaClient props={props} Component={EventIndex} />;
return (
<QueryProvider>
<TinaClient props={props} Component={EventIndex} />
</QueryProvider>
);
}

0 comments on commit 956b087

Please sign in to comment.