diff --git a/src/app/App.tsx b/src/app/App.tsx index 0fb6b5b..afcfa81 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1,14 +1,15 @@ import { FC, Suspense, useEffect } from 'react'; import { classNames } from '@/shared/lib/classNames/classNames'; import { useAppDispatch } from '@/shared/lib/hooks/useAppDispatch'; -import { Navbar } from '@/widgets/Navbar'; -import { Aside } from '@/widgets/Aside'; import { useAppSelector } from '@/shared/lib/hooks/useAppSelector'; -import { getUserMounted, initAuthData } from '@/entities/User'; +import { Skeleton } from '@/shared/ui/redesigned/Skeleton'; +// import { Skeleton as SkeletonDeprecatedLoading } from '@/shared/ui/deprecated/Skeleton'; +import { MainLayout } from '@/shared/layouts/MainLayout'; import { useTheme } from '@/shared/lib/hooks/useTheme'; import { ToggleFeatures } from '@/shared/lib/features'; -import { Skeleton } from '@/shared/ui/deprecated/Skeleton'; -import { MainLayout } from '@/shared/layouts/MainLayout'; +import { getUserMounted, initAuthData } from '@/entities/User'; +import { Navbar } from '@/widgets/Navbar'; +import { Aside } from '@/widgets/Aside'; import { AppRouter } from './providers/RouterProvider'; const App: FC = () => { @@ -21,43 +22,74 @@ const App: FC = () => { dispatch(initAuthData()); }, [dispatch, theme]); + /** + * @deprecated + */ + // const SkeletonDeprecated = ( + //
+ // + //
+ // + //
+ //
+ // ); + + const SkeletonRedesigned = ( +
+
+ + } + aside={} + content={} + /> + +
+
+ ); + if (!_mounted) { return ( -
- -
- -
-
+ ); } + /** + * @deprecated + */ + const AppDeprecated = ( +
+ + +
+
+
+
+ ); + + const AppRedesigned = ( +
+ + } + aside={
+ ); + return ( - - } - aside={