Changed out logo.
This commit is contained in:
@@ -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 />;
|
||||
|
||||
Reference in New Issue
Block a user