fix and update
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
'use client';
|
||||
|
||||
import { use } from 'react';
|
||||
import { IdShell } from '@/components/id/shell';
|
||||
import { use, useEffect } from 'react';
|
||||
import { FamilyGroupView } from '@/components/family/family-group-view';
|
||||
import { useFamilyOverlay } from '@/components/family/family-overlay-provider';
|
||||
import { IdShell } from '@/components/id/shell';
|
||||
|
||||
export default function FamilyGroupPage({ params }: { params: Promise<{ groupId: string }> }) {
|
||||
const { groupId } = use(params);
|
||||
const { setSelectedGroupId } = useFamilyOverlay();
|
||||
|
||||
useEffect(() => {
|
||||
setSelectedGroupId(groupId);
|
||||
}, [groupId, setSelectedGroupId]);
|
||||
|
||||
return (
|
||||
<IdShell active="/family" wide>
|
||||
<FamilyGroupView groupId={groupId} />
|
||||
|
||||
Reference in New Issue
Block a user