Skip to content

Commit

Permalink
Events - Removing the search Param
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Oct 31, 2024
1 parent de9917c commit 8d5bbd6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/events/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ import { EventsFilter } from "@/components/filter/events";
import { Container } from "@/components/util/container";
import { HydrationBoundary } from "@tanstack/react-query";
import { QueryProvider } from "app/providers/query-provider";
import { useSearchParams } from "next/navigation";
import { TinaMarkdown } from "tinacms/dist/rich-text";

export default function EventsIndexPage({ props, tinaProps }) {
const { filterCategories } = props;
const { data } = tinaProps;

const searchParams = useSearchParams();

const defaultToPastTab = searchParams.get("past") === "1";
const defaultToPastTab = false;

return (
<QueryProvider>
Expand Down

0 comments on commit 8d5bbd6

Please sign in to comment.