mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
fix PageHeader type errors
This commit is contained in:
parent
41d2a24f9d
commit
6b584338e3
3 changed files with 3 additions and 4 deletions
|
|
@ -10,8 +10,8 @@ export function LinkHeader() {
|
||||||
const link = useLink();
|
const link = useLink();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageHeader title={link.name} description={link.url} icon={<Link />} marginBottom="3">
|
<PageHeader title={link.name} description={link.url} icon={<Link />}>
|
||||||
<LinkButton href={getSlugUrl(link.slug)} target="_blank" prefetch={false}>
|
<LinkButton href={getSlugUrl(link.slug)} target="_blank">
|
||||||
<Icon>
|
<Icon>
|
||||||
<ExternalLink />
|
<ExternalLink />
|
||||||
</Icon>
|
</Icon>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ export function PixelHeader() {
|
||||||
const pixel = usePixel();
|
const pixel = usePixel();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageHeader title={pixel.name} icon={<Grid2x2 />} marginBottom="3">
|
<PageHeader title={pixel.name} icon={<Grid2x2 />}>
|
||||||
<LinkButton href={getSlugUrl(pixel.slug)} target="_blank" prefetch={false}>
|
<LinkButton href={getSlugUrl(pixel.slug)} target="_blank" prefetch={false}>
|
||||||
<Icon>
|
<Icon>
|
||||||
<ExternalLink />
|
<ExternalLink />
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ export function WebsiteHeader({ showActions }: { showActions?: boolean }) {
|
||||||
<PageHeader
|
<PageHeader
|
||||||
title={website.name}
|
title={website.name}
|
||||||
icon={<Favicon domain={website.domain} />}
|
icon={<Favicon domain={website.domain} />}
|
||||||
marginBottom="3"
|
|
||||||
titleHref={renderUrl(`/websites/${website.id}`, false)}
|
titleHref={renderUrl(`/websites/${website.id}`, false)}
|
||||||
>
|
>
|
||||||
<Row alignItems="center" gap="6" wrap="wrap">
|
<Row alignItems="center" gap="6" wrap="wrap">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue