mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-19 15:53:39 +01:00
Bug fixes.
This commit is contained in:
parent
13dddb3764
commit
4217e890fc
@ -29,7 +29,7 @@ export default function DropDown({
|
|||||||
}
|
}
|
||||||
|
|
||||||
useDocumentClick(e => {
|
useDocumentClick(e => {
|
||||||
if (!ref.current.contains(e.target)) {
|
if (!ref.current?.contains(e.target)) {
|
||||||
setShowMenu(false);
|
setShowMenu(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -30,7 +30,7 @@ export default function MenuButton({
|
|||||||
}
|
}
|
||||||
|
|
||||||
useDocumentClick(e => {
|
useDocumentClick(e => {
|
||||||
if (!ref.current.contains(e.target)) {
|
if (!ref.current?.contains(e.target)) {
|
||||||
setShowMenu(false);
|
setShowMenu(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -10,7 +10,7 @@ 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 }) {
|
||||||
let TitleHeader = showLink ? (
|
const header = showLink ? (
|
||||||
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
<Link href="/website/[...id]" as={`/website/${websiteId}/${title}`}>
|
||||||
<Favicon domain={domain} />
|
<Favicon domain={domain} />
|
||||||
{title}
|
{title}
|
||||||
@ -24,7 +24,7 @@ export default function WebsiteHeader({ websiteId, title, domain, showLink = fal
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<PageHeader>
|
<PageHeader>
|
||||||
<div className={styles.title}>{TitleHeader}</div>
|
<div className={styles.title}>{header}</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} />
|
||||||
|
Loading…
Reference in New Issue
Block a user