|
|
@@ -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);
|
|
|
|