chore: fix type annotations (#6600)

This commit is contained in:
非法操作
2024-07-25 11:21:51 +08:00
committed by GitHub
parent 9815aab7a3
commit 585444c50c
12 changed files with 27 additions and 21 deletions

View File

@@ -28,7 +28,7 @@ const Category: FC<ICategoryProps> = ({
allCategoriesEn,
}) => {
const { t } = useTranslation()
const isAllCategories = !list.includes(value)
const isAllCategories = !list.includes(value as AppCategory)
const itemClassName = (isSelected: boolean) => cn(
'flex items-center px-3 py-[7px] h-[32px] rounded-lg border-[0.5px] border-transparent text-gray-700 font-medium leading-[18px] cursor-pointer hover:bg-gray-200',