From de2b5a05bd42b4b5dec5877c8049b71a9d737cc1 Mon Sep 17 00:00:00 2001 From: codytseng Date: Sun, 12 Oct 2025 21:45:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/KindFilter/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/KindFilter/index.tsx b/src/components/KindFilter/index.tsx index 53c2b14..a227eb9 100644 --- a/src/components/KindFilter/index.tsx +++ b/src/components/KindFilter/index.tsx @@ -3,7 +3,7 @@ import { Checkbox } from '@/components/ui/checkbox' import { Drawer, DrawerContent, DrawerHeader, DrawerTrigger } from '@/components/ui/drawer' import { Label } from '@/components/ui/label' import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover' -import { ExtendedKind, SUPPORTED_KINDS } from '@/constants' +import { ExtendedKind } from '@/constants' import { cn } from '@/lib/utils' import { useKindFilter } from '@/providers/KindFilterProvider' import { useScreenSize } from '@/providers/ScreenSizeProvider' @@ -22,6 +22,7 @@ const KIND_FILTER_OPTIONS = [ { kindGroup: [ExtendedKind.PICTURE], label: 'Photo Posts' }, { kindGroup: [ExtendedKind.VIDEO, ExtendedKind.SHORT_VIDEO], label: 'Video Posts' } ] +const ALL_KINDS = KIND_FILTER_OPTIONS.flatMap(({ kindGroup }) => kindGroup) export default function KindFilter({ showKinds, @@ -105,7 +106,6 @@ export default function KindFilter({ checked ? 'border-primary/60 bg-primary/5' : 'clickable' )} onClick={() => { - console.log(checked) if (!checked) { // add all kinds in this group setTemporaryShowKinds((prev) => Array.from(new Set([...prev, ...kindGroup]))) @@ -126,7 +126,7 @@ export default function KindFilter({