Yuki Takei 7 bulan lalu
induk
melakukan
7ff18ebde7

+ 1 - 1
apps/app/src/client/components/PageAccessoriesModal/ShareLink/ShareLink.tsx

@@ -14,7 +14,7 @@ export const ShareLink = (): JSX.Element => {
   const { t } = useTranslation();
   const { t } = useTranslation();
   const [isOpenShareLinkForm, setIsOpenShareLinkForm] = useState<boolean>(false);
   const [isOpenShareLinkForm, setIsOpenShareLinkForm] = useState<boolean>(false);
 
 
-  const [currentPageId] = useCurrentPageId();
+  const currentPageId = useCurrentPageId();
 
 
   const { data: currentShareLinks, mutate } = useSWRxSharelink(currentPageId);
   const { data: currentShareLinks, mutate } = useSWRxSharelink(currentPageId);
 
 

+ 1 - 1
apps/app/src/client/components/PageAccessoriesModal/ShareLink/ShareLinkForm.tsx

@@ -33,7 +33,7 @@ export const ShareLinkForm: FC<Props> = (props: Props) => {
   const [customExpirationDate, setCustomExpirationDate] = useState<Date>(new Date());
   const [customExpirationDate, setCustomExpirationDate] = useState<Date>(new Date());
   const [customExpirationTime, setCustomExpirationTime] = useState<Date>(new Date());
   const [customExpirationTime, setCustomExpirationTime] = useState<Date>(new Date());
 
 
-  const [currentPageId] = useCurrentPageId();
+  const currentPageId = useCurrentPageId();
 
 
   const handleChangeExpirationType = useCallback((expirationType: ExpirationType) => {
   const handleChangeExpirationType = useCallback((expirationType: ExpirationType) => {
     setExpirationType(expirationType);
     setExpirationType(expirationType);