mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 03:25:40 +01:00
Changed out logo.
This commit is contained in:
parent
631cc46f7f
commit
509e1f0083
2 changed files with 5 additions and 7 deletions
|
|
@ -18,9 +18,9 @@ import {
|
|||
Globe,
|
||||
Grid2x2,
|
||||
LayoutDashboard,
|
||||
LayoutGrid,
|
||||
LinkIcon,
|
||||
PanelLeft,
|
||||
PanelsLeftBottom,
|
||||
} from '@/components/icons';
|
||||
import { UserButton } from '@/components/input/UserButton';
|
||||
import { Logo } from '@/components/svg';
|
||||
|
|
@ -37,7 +37,7 @@ export function SideNav(props: any) {
|
|||
id: 'dashboard',
|
||||
label: t(labels.dashboard),
|
||||
path: '/dashboard',
|
||||
icon: <LayoutGrid />,
|
||||
icon: <PanelsLeftBottom />,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { Column } from '@umami/react-zen';
|
||||
import { useEffect } from 'react';
|
||||
import { BoardViewBody } from '@/app/(main)/boards/[boardId]/BoardViewBody';
|
||||
import { EmptyPlaceholder } from '@/components/common/EmptyPlaceholder';
|
||||
import { Empty } from '@/components/common/Empty';
|
||||
import { PageBody } from '@/components/common/PageBody';
|
||||
import { useBoard, useMessages, useNavigation } from '@/components/hooks';
|
||||
import { DashboardProvider } from './DashboardProvider';
|
||||
|
|
@ -10,14 +10,12 @@ import { DashboardViewHeader } from './DashboardViewHeader';
|
|||
|
||||
function DashboardContent() {
|
||||
const { board } = useBoard();
|
||||
const { t, labels, messages } = useMessages();
|
||||
const { t, messages } = useMessages();
|
||||
const rows = board?.parameters?.rows ?? [];
|
||||
const hasComponents = rows.some(row => row.columns?.some(column => !!column.component));
|
||||
|
||||
if (!hasComponents) {
|
||||
return (
|
||||
<EmptyPlaceholder title={t(labels.dashboard)} description={t(messages.emptyDashboard)} />
|
||||
);
|
||||
return <Empty message={t(messages.emptyDashboard)} />;
|
||||
}
|
||||
|
||||
return <BoardViewBody />;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue