diff --git a/src/components/admin/AdminPage.tsx b/src/components/admin/AdminPage.tsx index 4411d9545..35d674dee 100644 --- a/src/components/admin/AdminPage.tsx +++ b/src/components/admin/AdminPage.tsx @@ -9,10 +9,13 @@ import AdminLayout from 'components/common/navigation/AdminLayout' import { adminCards } from 'components/common/navigation/adminMenu' import AdminContainer from 'components/common/navigation/AdminContainer' +const colors = ['#0179a8', '#346cb0', '#5f4b8b', '#b76ba3', '#a7c796', '#00a28a', '#3686a0'] + export default function AdminPage() { const { t } = useTranslation() const router = useRouter() const { data: session, status } = useSession() + if (status !== 'authenticated') { return ( @@ -43,20 +46,39 @@ export default function AdminPage() { {'Добре дошли!'} - + {adminCards.map(({ label, href, icon: Icon }, index) => ( - - - router.push(href)}> + + +
router.push(href)} style={{ cursor: 'pointer' }}> - + - + {label} - +
))}