mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 21:57:16 +01:00
Fixed styling on update notice. Added private mode.
This commit is contained in:
parent
314bbee717
commit
dd88b1d901
6 changed files with 16 additions and 6 deletions
|
|
@ -6,6 +6,10 @@ function getHostName(url: string) {
|
|||
}
|
||||
|
||||
export function Favicon({ domain, ...props }) {
|
||||
if (process.env.privateMode) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const hostName = domain ? getHostName(domain) : null;
|
||||
|
||||
return hostName ? (
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export function ProfileButton() {
|
|||
const { user } = useLogin();
|
||||
const router = useRouter();
|
||||
const { dir } = useLocale();
|
||||
const cloudMode = Boolean(process.env.cloudMode);
|
||||
const cloudMode = !!process.env.cloudMode;
|
||||
|
||||
const handleSelect = (key: Key, close: () => void) => {
|
||||
if (key === 'profile') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue