Yuki Takei 7 месяцев назад
Родитель
Сommit
0a86350e8b
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      apps/app/src/components/PageView/PageAlerts/PageRedirectedAlert.tsx

+ 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 { 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 => {
 export const PageRedirectedAlert = React.memo((): JSX.Element => {
   const { t } = useTranslation();
   const { t } = useTranslation();
   const currentPagePath = useCurrentPagePath();
   const currentPagePath = useCurrentPagePath();
-  const [redirectFrom] = useRedirectFrom();
+  const redirectFrom = useRedirectFrom();
 
 
   const [isUnlinked, setIsUnlinked] = useState(false);
   const [isUnlinked, setIsUnlinked] = useState(false);