change dashboard layout
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import styles from "@/app/styles/page.module.scss";
|
||||
import { Metadata } from 'next';
|
||||
import Link from 'next/link';
|
||||
import { useTranslations } from 'next-intl';
|
||||
@@ -11,12 +10,8 @@ export default function Home() {
|
||||
const t = useTranslations('HomePage');
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<main className={styles.main}>
|
||||
<div className={styles.intro}>
|
||||
Home page
|
||||
{t('title')}
|
||||
</div>
|
||||
<div>
|
||||
<main>
|
||||
<Link key={'dashboard'}
|
||||
href={'/pages/dashboard'}
|
||||
>dash board</Link>
|
||||
|
||||
@@ -2,11 +2,8 @@ import { Metadata } from 'next';
|
||||
import { Suspense } from 'react';
|
||||
import ProtectionOverview from '@/app/ui/dashboard/protection-overview';
|
||||
import StatsGrid from '@/app/ui/dashboard/stats-grid';
|
||||
import StorageBreakdown from '@/app/ui/dashboard/storage-breakdown';
|
||||
import ChartContainer from '@/app/ui/dashboard/chart-container';
|
||||
import ViolationsTable from '@/app/ui/dashboard/violations-table';
|
||||
import ViolationsTypeTable from '@/app/ui/dashboard/violations-type-table';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import FilesTable from '@/app/ui/dashboard/files-table';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Dashboard',
|
||||
@@ -23,10 +20,7 @@ export default function Page() {
|
||||
</h1>
|
||||
<ProtectionOverview />
|
||||
<StatsGrid />
|
||||
<StorageBreakdown />
|
||||
<ChartContainer />
|
||||
<ViolationsTable />
|
||||
<ViolationsTypeTable />
|
||||
<FilesTable />
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -19,9 +19,9 @@ export default async function Layout({ children }: { children: React.ReactNode }
|
||||
<div className="flex">
|
||||
<HydrationBoundary state={dehydrate(queryClient)}>
|
||||
<NavLinks />
|
||||
<div className={`${styles['main-containter']}`}>
|
||||
<div className={`${styles['main-containter-wrapper']}`}>
|
||||
<HeaderPanel />
|
||||
<main>
|
||||
<main className={`${styles['main-containter']}`}>
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user