mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Updated version checking.
This commit is contained in:
parent
1bfb26ab44
commit
c8ca0a0a56
7 changed files with 38 additions and 42 deletions
|
|
@ -3,11 +3,11 @@ import classNames from 'classnames';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
import Link from 'components/common/Link';
|
||||
import styles from './Footer.module.css';
|
||||
import useVersion from 'hooks/useVersion';
|
||||
import useStore from 'store/version';
|
||||
import { HOMEPAGE_URL, VERSION_URL } from 'lib/constants';
|
||||
|
||||
export default function Footer() {
|
||||
const { current } = useVersion();
|
||||
const { current } = useStore();
|
||||
|
||||
return (
|
||||
<footer className={classNames(styles.footer, 'row')}>
|
||||
|
|
|
|||
|
|
@ -17,9 +17,11 @@ export default function Header() {
|
|||
const { user } = useUser();
|
||||
const { pathname } = useRouter();
|
||||
|
||||
console.log('wat', process.env.updatesDisabled);
|
||||
|
||||
return (
|
||||
<>
|
||||
{user?.is_admin && <UpdateNotice />}
|
||||
{user?.is_admin && !process.env.updatesDisabled && <UpdateNotice />}
|
||||
<header className={classNames(styles.header, 'row')}>
|
||||
<div className={styles.title}>
|
||||
<Icon icon={<Logo />} size="large" className={styles.logo} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue