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,
|
Globe,
|
||||||
Grid2x2,
|
Grid2x2,
|
||||||
LayoutDashboard,
|
LayoutDashboard,
|
||||||
LayoutGrid,
|
|
||||||
LinkIcon,
|
LinkIcon,
|
||||||
PanelLeft,
|
PanelLeft,
|
||||||
|
PanelsLeftBottom,
|
||||||
} from '@/components/icons';
|
} from '@/components/icons';
|
||||||
import { UserButton } from '@/components/input/UserButton';
|
import { UserButton } from '@/components/input/UserButton';
|
||||||
import { Logo } from '@/components/svg';
|
import { Logo } from '@/components/svg';
|
||||||
|
|
@ -37,7 +37,7 @@ export function SideNav(props: any) {
|
||||||
id: 'dashboard',
|
id: 'dashboard',
|
||||||
label: t(labels.dashboard),
|
label: t(labels.dashboard),
|
||||||
path: '/dashboard',
|
path: '/dashboard',
|
||||||
icon: <LayoutGrid />,
|
icon: <PanelsLeftBottom />,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
import { Column } from '@umami/react-zen';
|
import { Column } from '@umami/react-zen';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { BoardViewBody } from '@/app/(main)/boards/[boardId]/BoardViewBody';
|
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 { PageBody } from '@/components/common/PageBody';
|
||||||
import { useBoard, useMessages, useNavigation } from '@/components/hooks';
|
import { useBoard, useMessages, useNavigation } from '@/components/hooks';
|
||||||
import { DashboardProvider } from './DashboardProvider';
|
import { DashboardProvider } from './DashboardProvider';
|
||||||
|
|
@ -10,14 +10,12 @@ import { DashboardViewHeader } from './DashboardViewHeader';
|
||||||
|
|
||||||
function DashboardContent() {
|
function DashboardContent() {
|
||||||
const { board } = useBoard();
|
const { board } = useBoard();
|
||||||
const { t, labels, messages } = useMessages();
|
const { t, messages } = useMessages();
|
||||||
const rows = board?.parameters?.rows ?? [];
|
const rows = board?.parameters?.rows ?? [];
|
||||||
const hasComponents = rows.some(row => row.columns?.some(column => !!column.component));
|
const hasComponents = rows.some(row => row.columns?.some(column => !!column.component));
|
||||||
|
|
||||||
if (!hasComponents) {
|
if (!hasComponents) {
|
||||||
return (
|
return <Empty message={t(messages.emptyDashboard)} />;
|
||||||
<EmptyPlaceholder title={t(labels.dashboard)} description={t(messages.emptyDashboard)} />
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return <BoardViewBody />;
|
return <BoardViewBody />;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue