mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
New Dashboard component.
This commit is contained in:
parent
33c921a32f
commit
20622116a8
10 changed files with 64 additions and 57 deletions
|
|
@ -1,14 +1,10 @@
|
|||
import React from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import Layout from 'components/layout/Layout';
|
||||
import WebsiteList from 'components/pages/WebsiteList';
|
||||
import Dashboard from 'components/pages/Dashboard';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
|
||||
export default function DashboardPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const userId = id?.[0];
|
||||
|
||||
if (loading) {
|
||||
return null;
|
||||
|
|
@ -16,7 +12,7 @@ export default function DashboardPage() {
|
|||
|
||||
return (
|
||||
<Layout>
|
||||
<WebsiteList userId={userId} />
|
||||
<Dashboard />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue