diff --git a/src/app/[locale]/admin-panel/layout.tsx b/src/app/[locale]/admin-panel/layout.tsx index 1eacf45..3e23d78 100644 --- a/src/app/[locale]/admin-panel/layout.tsx +++ b/src/app/[locale]/admin-panel/layout.tsx @@ -2,6 +2,8 @@ import AdminNavLinks from '@/app/ui/admin-panel/admin-nav-links' import { getQueryClient } from '@/app/providers/getQueryClient'; import { HydrationBoundary, dehydrate } from '@tanstack/react-query'; import { prefetchLayoutQueries } from '@/app/lib/prefetch-queries'; +import AdminHeaderPanel from '@/app/ui/admin-panel/admin-header-panel'; +import "../../styles/admin-panel.scss" export default async function Layout({ children }: { children: React.ReactNode }) { const queryClient = getQueryClient(); @@ -9,10 +11,11 @@ export default async function Layout({ children }: { children: React.ReactNode } await prefetchLayoutQueries(queryClient); return ( -
+
-
+
+
{children}
diff --git a/src/app/[locale]/admin-panel/page.tsx b/src/app/[locale]/admin-panel/page.tsx index 047c9a7..bf7e63f 100644 --- a/src/app/[locale]/admin-panel/page.tsx +++ b/src/app/[locale]/admin-panel/page.tsx @@ -1,7 +1,14 @@ +import DashboardGeneralInfo from '@/app/ui/admin-panel/dashboard-general-info'; +import UsersTop from '@/app/ui/admin-panel/users-top'; +import SubscriptionsStatistic from '@/app/ui/admin-panel/subscriptions-statistic'; export default function Page() { return (
- admin-page + +
+ + +
) } \ No newline at end of file diff --git a/src/app/[locale]/admin-panel/subscriptions/page.tsx b/src/app/[locale]/admin-panel/subscriptions/page.tsx new file mode 100644 index 0000000..c635711 --- /dev/null +++ b/src/app/[locale]/admin-panel/subscriptions/page.tsx @@ -0,0 +1,7 @@ +export default function Page() { + return ( +
+ subscriptions-page +
+ ) +} \ No newline at end of file diff --git a/src/app/[locale]/admin-panel/users/page.tsx b/src/app/[locale]/admin-panel/users/page.tsx new file mode 100644 index 0000000..debcce9 --- /dev/null +++ b/src/app/[locale]/admin-panel/users/page.tsx @@ -0,0 +1,7 @@ +export default function Page() { + return ( +
+ users-page +
+ ) +} \ No newline at end of file diff --git a/src/app/components/LanguageSwitcher.tsx b/src/app/components/LanguageSwitcher.tsx index d00df7b..d11ecdf 100644 --- a/src/app/components/LanguageSwitcher.tsx +++ b/src/app/components/LanguageSwitcher.tsx @@ -32,10 +32,10 @@ export default function LanguageSwitcher() { }, []); return ( -
+
{isOpen && ( -
+