mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
Add link to title in card header
This commit is contained in:
parent
0b8336f103
commit
91c43f30fa
@ -10,12 +10,21 @@ import Arrow from 'assets/arrow-right.svg';
|
|||||||
import styles from './WebsiteHeader.module.css';
|
import styles from './WebsiteHeader.module.css';
|
||||||
|
|
||||||
export default function WebsiteHeader({ websiteId, title, domain, showLink = false }) {
|
export default function WebsiteHeader({ websiteId, title, domain, showLink = false }) {
|
||||||
return (
|
let TitleHeader = showLink ? (
|
||||||
<PageHeader>
|
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
||||||
<div className={styles.title}>
|
<Favicon domain={domain} />
|
||||||
|
{title}
|
||||||
|
</Link>
|
||||||
|
) : (
|
||||||
|
<div>
|
||||||
<Favicon domain={domain} />
|
<Favicon domain={domain} />
|
||||||
{title}
|
{title}
|
||||||
</div>
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<PageHeader>
|
||||||
|
<div className={styles.title}>{TitleHeader}</div>
|
||||||
<ActiveUsers className={styles.active} websiteId={websiteId} />
|
<ActiveUsers className={styles.active} websiteId={websiteId} />
|
||||||
<ButtonLayout align="right">
|
<ButtonLayout align="right">
|
||||||
<RefreshButton websiteId={websiteId} />
|
<RefreshButton websiteId={websiteId} />
|
||||||
|
16651
package-lock.json
generated
Normal file
16651
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user