mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Update version check. Updated packages.
This commit is contained in:
parent
77db711a67
commit
9edf657e25
7 changed files with 106 additions and 77 deletions
|
|
@ -8,7 +8,7 @@ import useForceUpdate from '../../hooks/useForceUpdate';
|
|||
|
||||
export default function UpdateNotice() {
|
||||
const forceUpdte = useForceUpdate();
|
||||
const { hasUpdate, latest, updateCheck } = useVersion();
|
||||
const { hasUpdate, latest, updateCheck } = useVersion(true);
|
||||
|
||||
function handleViewClick() {
|
||||
location.href = 'https://github.com/mikecao/umami/releases';
|
||||
|
|
|
|||
|
|
@ -2,9 +2,10 @@ import React from 'react';
|
|||
import { FormattedMessage } from 'react-intl';
|
||||
import Link from 'components/common/Link';
|
||||
import styles from './Footer.module.css';
|
||||
import useVersion from 'hooks/useVersion';
|
||||
|
||||
export default function Footer() {
|
||||
const version = process.env.VERSION;
|
||||
const { current } = useVersion();
|
||||
return (
|
||||
<footer className="container">
|
||||
<div className={styles.footer}>
|
||||
|
|
@ -22,7 +23,7 @@ export default function Footer() {
|
|||
}}
|
||||
/>
|
||||
</div>
|
||||
<div>{`v${version}`}</div>
|
||||
<div>{`v${current}`}</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue