Yuki Takei 7 месяцев назад
Родитель
Сommit
0a86350e8b

+ 2 - 3
apps/app/src/components/PageView/PageAlerts/PageRedirectedAlert.tsx

@@ -2,13 +2,12 @@ import React, { useState, useCallback, type JSX } from 'react';
 
 import { useTranslation } from 'next-i18next';
 
-import { useCurrentPagePath } from '~/states/page';
-import { useRedirectFrom } from '~/states/page/redirect';
+import { useCurrentPagePath, useRedirectFrom } from '~/states/page';
 
 export const PageRedirectedAlert = React.memo((): JSX.Element => {
   const { t } = useTranslation();
   const currentPagePath = useCurrentPagePath();
-  const [redirectFrom] = useRedirectFrom();
+  const redirectFrom = useRedirectFrom();
 
   const [isUnlinked, setIsUnlinked] = useState(false);