diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx
index 06cb687..789ba1b 100644
--- a/src/components/App/index.tsx
+++ b/src/components/App/index.tsx
@@ -233,71 +233,77 @@ function App(): JSX.Element {
} />
- {/* }> */}
- }>
- {/* }>
+ }>
+ {/* }
/> */}
- }
- />
- }
- />
+ }
+ />
+ }
+ />
+
+ }>
+ } />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+
- {/* }> */}
- } />
- }
- />
- }
- />
- }
- />
- }
- />
- } />
- } />
- }
- />
- }
- />
- }
- />
- }
- />
- }
- />
- }
- />
- }
- />
- {/* */}
- {/* */}
} />
@@ -431,25 +437,25 @@ function AuthorizedUserOutlet(): JSX.Element {
);
}
-// function PrivateOutlet(): JSX.Element {
-// const { user } = useAuth();
-// return user ? (
-//
-// ) : (
-//
-// );
-// }
+function PrivateOutlet(): JSX.Element {
+ const { user } = useAuth();
+ return user ? (
+
+ ) : (
+
+ );
+}
-// function PrivateSubscriptionOutlet(): JSX.Element {
-// // const isProduction = import.meta.env.MODE === "production";
-// const isProduction = false;
-// const status = useSelector(selectors.selectStatus);
-// return status === "subscribed" || !isProduction ? (
-//
-// ) : (
-//
-// );
-// }
+function PrivateSubscriptionOutlet(): JSX.Element {
+ // const isProduction = import.meta.env.MODE === "production";
+ const isProduction = false;
+ const status = useSelector(selectors.selectStatus);
+ return status === "subscribed" || !isProduction ? (
+
+ ) : (
+
+ );
+}
function getIsShowFullDataModal(dataItems: Array = []): boolean {
let hasNoDataItem = false;
diff --git a/src/components/AttentionPage/index.tsx b/src/components/AttentionPage/index.tsx
index 43b3d6e..c8895a8 100644
--- a/src/components/AttentionPage/index.tsx
+++ b/src/components/AttentionPage/index.tsx
@@ -17,7 +17,7 @@ function AttentionPage({
}: AttentionPageProps): JSX.Element {
const { t } = useTranslation();
const navigate = useNavigate();
- const handleNext = () => navigate(routes.client.home());
+ const handleNext = () => navigate(routes.client.priceList());
return (
diff --git a/src/store/token.ts b/src/store/token.ts
index f5f571e..d9e619c 100644
--- a/src/store/token.ts
+++ b/src/store/token.ts
@@ -2,7 +2,7 @@ import { createSlice, createSelector } from '@reduxjs/toolkit'
import type { PayloadAction } from '@reduxjs/toolkit'
import type { AuthToken } from '../api'
-const initialState: AuthToken = 'eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjI5MjY0LCJpYXQiOjE3MDA3ODcwNjcsImV4cCI6MTcwOTQyNzA2NywianRpIjoiNDJlYzI4M2ItY2M1My00ZGY1LWIxYzctZmFhZjM3OTU2NjY2IiwiZW1haWwiOiJmYmljaGExMjM0QGdtYWlsLmNvbSIsInN0YXRlIjoicHJvdmVuIiwibG9jIjoicnUiLCJ0eiI6MTQ0MDAsInR5cGUiOiJvYXV0aCIsImlzcyI6ImF1cmF3ZWIifQ.kPAN5MImnR1lhaotPPQc78faot2W1ceygEq33qLkfOM'
+const initialState: AuthToken = ''
const authTokenSlice = createSlice({
name: 'token',