mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Implement redux.
This commit is contained in:
parent
9d8a2406e1
commit
5d4ff5cfa4
31 changed files with 341 additions and 85 deletions
|
|
@ -1,13 +1,15 @@
|
|||
import React from 'react';
|
||||
import { useRouter } from 'next/router';
|
||||
import Layout from 'components/Layout';
|
||||
import WebsiteDetails from '../../components/WebsiteDetails';
|
||||
import WebsiteDetails from 'components/WebsiteDetails';
|
||||
import useUser from 'hooks/useUser';
|
||||
|
||||
export default function DetailsPage() {
|
||||
const { loading } = useUser();
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
|
||||
if (!id) {
|
||||
if (!id || loading) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue