Fixed styling on update notice. Added private mode.

This commit is contained in:
Mike Cao committed 2024-03-29 11:48:12 -07:00
1 parent 314bbee717
commit dd88b1d901
6 files changed
+16 -6

No files matched your search

+4
View File
@@ -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 ? (
+1 -1
View File
@@ -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') {