mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
Updated website edit.
This commit is contained in:
parent
fdfa8b08f9
commit
eabfec9075
8 changed files with 47 additions and 58 deletions
|
|
@ -1,9 +1,22 @@
|
|||
import Link from 'next/link';
|
||||
import { PageHeader } from '@/components/common/PageHeader';
|
||||
import { Globe } from '@/components/icons';
|
||||
import { useWebsite } from '@/components/hooks';
|
||||
import { Globe, ArrowLeft } from '@/components/icons';
|
||||
import { useMessages, useNavigation, useWebsite } from '@/components/hooks';
|
||||
import { IconLabel, Row } from '@umami/react-zen';
|
||||
|
||||
export function WebsiteSettingsHeader() {
|
||||
const website = useWebsite();
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { renderUrl } = useNavigation();
|
||||
|
||||
return <PageHeader title={website?.name} icon={<Globe />} />;
|
||||
return (
|
||||
<>
|
||||
<Row marginTop="6">
|
||||
<Link href={renderUrl(`/websites/${website.id}`)}>
|
||||
<IconLabel icon={<ArrowLeft />} label={formatMessage(labels.website)} />
|
||||
</Link>
|
||||
</Row>
|
||||
<PageHeader title={website?.name} description={website?.domain} icon={<Globe />} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue