global update and global fix
This commit is contained in:
@@ -5,17 +5,22 @@ 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);
|
||||
function FamilyGroupPageContent({ groupId }: { groupId: string }) {
|
||||
const { setSelectedGroupId } = useFamilyOverlay();
|
||||
|
||||
useEffect(() => {
|
||||
setSelectedGroupId(groupId);
|
||||
}, [groupId, setSelectedGroupId]);
|
||||
|
||||
return <FamilyGroupView groupId={groupId} />;
|
||||
}
|
||||
|
||||
export default function FamilyGroupPage({ params }: { params: Promise<{ groupId: string }> }) {
|
||||
const { groupId } = use(params);
|
||||
|
||||
return (
|
||||
<IdShell active="/family" wide>
|
||||
<FamilyGroupView groupId={groupId} />
|
||||
<FamilyGroupPageContent groupId={groupId} />
|
||||
</IdShell>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user