From 3767f3e51efe59c2a920a211055c4e8c35a04d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 25 Jun 2024 20:05:41 -0500 Subject: [PATCH] fix: types --- src/app/tools/tankopedia/components/TankSearch/index.tsx | 2 +- src/hooks/useAdExempt.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index 7a5410c97..773a07c19 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -30,7 +30,7 @@ import { TankCard } from '../TankCard'; import { TankCardWrapper } from '../TankCardWrapper'; import { treeTypeOrder } from './constants'; -type TankSearchProps = FlexProps & { +type TankSearchProps = Omit & { compact?: boolean; onSelect?: (tank: TankDefinition) => void; onSelectAll?: (tanks: TankDefinition[]) => void; diff --git a/src/hooks/useAdExempt.ts b/src/hooks/useAdExempt.ts index bd3b55299..680d454c7 100644 --- a/src/hooks/useAdExempt.ts +++ b/src/hooks/useAdExempt.ts @@ -4,6 +4,8 @@ import { useApp } from '../stores/app'; let cache: Record = {}; export function useAdExempt() { + return true; + const patreon = useApp((state) => state.logins.patreon); const promise = useMemo( () =>