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