Browse Source

add generic

Shun Miyazawa 4 years ago
parent
commit
ee9b2b8710
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/TagsList.tsx

+ 2 - 2
packages/app/src/components/TagsList.tsx

@@ -17,8 +17,8 @@ type Props = {
 const TagsList: FC<Props> = (props: Props) => {
 const TagsList: FC<Props> = (props: Props) => {
   const { t } = useTranslation();
   const { t } = useTranslation();
 
 
-  const [activePage, setActivePage] = useState(1);
-  const [pagingOffset, setPagingOffset] = useState(0);
+  const [activePage, setActivePage] = useState<number>(1);
+  const [pagingOffset, setPagingOffset] = useState<number>(0);
 
 
   const { data: tagsList, error, mutate } = useSWRxTagsList(PAGING_LIMIT, pagingOffset);
   const { data: tagsList, error, mutate } = useSWRxTagsList(PAGING_LIMIT, pagingOffset);