mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Add link to title in card header
This commit is contained in:
parent
0b8336f103
commit
91c43f30fa
2 changed files with 16664 additions and 4 deletions
|
|
@ -10,12 +10,21 @@ import Arrow from 'assets/arrow-right.svg';
|
|||
import styles from './WebsiteHeader.module.css';
|
||||
|
||||
export default function WebsiteHeader({ websiteId, title, domain, showLink = false }) {
|
||||
let TitleHeader = showLink ? (
|
||||
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
||||
<Favicon domain={domain} />
|
||||
{title}
|
||||
</Link>
|
||||
) : (
|
||||
<div>
|
||||
<Favicon domain={domain} />
|
||||
{title}
|
||||
</div>
|
||||
);
|
||||
|
||||
return (
|
||||
<PageHeader>
|
||||
<div className={styles.title}>
|
||||
<Favicon domain={domain} />
|
||||
{title}
|
||||
</div>
|
||||
<div className={styles.title}>{TitleHeader}</div>
|
||||
<ActiveUsers className={styles.active} websiteId={websiteId} />
|
||||
<ButtonLayout align="right">
|
||||
<RefreshButton websiteId={websiteId} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue