Skip to content

Commit

Permalink
fix: Fix slop status params
Browse files Browse the repository at this point in the history
  • Loading branch information
Najeong-Kim committed Aug 20, 2024
1 parent d820815 commit 2032a75
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/slop-status/ui/slop-status-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ const SlopStatusPage = ({ params }: { params: { key: keyof typeof RESORT_DOMAIN
return null;
}

return <SlopStatusPageContent key={params?.key} />;
return <SlopStatusPageContent params={params} />;
};

const SlopStatusPageContent = ({ key }: { key: keyof typeof RESORT_DOMAIN }) => {
const SlopStatusPageContent = ({ params }: { params: { key: keyof typeof RESORT_DOMAIN } }) => {
const { ref, style, containerRef } = useMapPinch();

const { data } = useQuery(slopQueries.list(key));
const { data } = useQuery(slopQueries.list(params.key));

if (!data) return;

return (
<main className={cn('w-full')}>
<SlopStatusHeader />
Expand Down

0 comments on commit 2032a75

Please sign in to comment.