mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
fix margins, teams button, and remove boards
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
This commit is contained in:
parent
cfd49e1742
commit
28ba2a1666
8 changed files with 7 additions and 24 deletions
|
|
@ -8,14 +8,7 @@ import {
|
|||
SidebarProps,
|
||||
ThemeButton,
|
||||
} from '@umami/react-zen';
|
||||
import {
|
||||
Globe,
|
||||
LayoutDashboard,
|
||||
Link as LinkIcon,
|
||||
Logo,
|
||||
Pixel,
|
||||
PanelLeft,
|
||||
} from '@/components/icons';
|
||||
import { Globe, Link as LinkIcon, Logo, Pixel, PanelLeft } from '@/components/icons';
|
||||
import { useMessages, useNavigation, useGlobalState } from '@/components/hooks';
|
||||
import { TeamsButton } from '@/components/input/TeamsButton';
|
||||
import { PanelButton } from '@/components/input/PanelButton';
|
||||
|
|
@ -30,12 +23,6 @@ export function SideNav(props: SidebarProps) {
|
|||
const hasNav = !!(websiteId || pathname.startsWith('/admin') || pathname.includes('/settings'));
|
||||
|
||||
const links = [
|
||||
{
|
||||
id: 'boards',
|
||||
label: formatMessage(labels.boards),
|
||||
path: '/boards',
|
||||
icon: <LayoutDashboard />,
|
||||
},
|
||||
{
|
||||
id: 'websites',
|
||||
label: formatMessage(labels.websites),
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export function AdminTeamsPage() {
|
|||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
return (
|
||||
<Column gap="6">
|
||||
<Column gap="6" margin="2">
|
||||
<PageHeader title={formatMessage(labels.teams)} />
|
||||
<Panel>
|
||||
<AdminTeamsDataTable />
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export function UsersPage() {
|
|||
const handleSave = () => {};
|
||||
|
||||
return (
|
||||
<Column gap="6">
|
||||
<Column gap="6" margin="2">
|
||||
<PageHeader title={formatMessage(labels.users)}>
|
||||
<UserAddButton onSave={handleSave} />
|
||||
</PageHeader>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export function AdminWebsitesPage() {
|
|||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
return (
|
||||
<Column gap="6">
|
||||
<Column gap="6" margin="2">
|
||||
<PageHeader title={formatMessage(labels.websites)} />
|
||||
<Panel>
|
||||
<AdminWebsitesDataTable />
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { Panel } from '@/components/common/Panel';
|
|||
export function WebsiteSettingsPage({ websiteId }: { websiteId: string }) {
|
||||
return (
|
||||
<WebsiteProvider websiteId={websiteId}>
|
||||
<Column gap="6">
|
||||
<Column gap="6" margin="2">
|
||||
<WebsiteSettingsHeader />
|
||||
<Panel>
|
||||
<WebsiteSettings websiteId={websiteId} />
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export function WebsiteLayout({ websiteId, children }: { websiteId: string; chil
|
|||
return (
|
||||
<WebsiteProvider websiteId={websiteId}>
|
||||
<Grid columns="auto 1fr" width="100%" height="100%">
|
||||
<Column height="100%" border="right" backgroundColor marginRight="2">
|
||||
<Column height="100%" border="right" backgroundColor>
|
||||
<WebsiteNav websiteId={websiteId} />
|
||||
</Column>
|
||||
<PageBody gap>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export function WebsitePage({ websiteId }: { websiteId: string }) {
|
|||
};
|
||||
|
||||
return (
|
||||
<Column gap>
|
||||
<Column gap marginLeft="2">
|
||||
<WebsiteControls websiteId={websiteId} />
|
||||
<WebsiteMetricsBar websiteId={websiteId} showChange={true} />
|
||||
<Panel minHeight="520px">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue