mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
More refactoring.
This commit is contained in:
parent
5f15ad0807
commit
02a1438cfe
41 changed files with 196 additions and 721 deletions
|
|
@ -1,11 +1,8 @@
|
|||
import AppLayout from 'components/layout/AppLayout';
|
||||
import TestConsole from 'components/pages/console/TestConsole';
|
||||
import useUser from 'hooks/useUser';
|
||||
|
||||
export default function ConsolePage({ pageDisabled }) {
|
||||
const { user } = useUser();
|
||||
|
||||
if (pageDisabled || !user || !user.isAdmin) {
|
||||
if (pageDisabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue