mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Compare commits
No commits in common. "b5795a8b3f961926153d88641265a50cc5746938" and "a6d4519a980dc301c7675ccf7ab69137b5469351" have entirely different histories.
b5795a8b3f
...
a6d4519a98
1 changed files with 9 additions and 11 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
import { useEffect, useCallback, useState } from 'react';
|
import { useEffect, useCallback, useState } from 'react';
|
||||||
import { Button, AlertBanner, Column, Row } from '@umami/react-zen';
|
import { Button, AlertBanner, Flexbox } from '@umami/react-zen';
|
||||||
import { setItem } from '@/lib/storage';
|
import { setItem } from '@/lib/storage';
|
||||||
import { useVersion, checkVersion } from '@/store/version';
|
import { useVersion, checkVersion } from '@/store/version';
|
||||||
import { REPO_URL, VERSION_CHECK } from '@/lib/constants';
|
import { REPO_URL, VERSION_CHECK } from '@/lib/constants';
|
||||||
|
|
@ -47,15 +47,13 @@ export function UpdateNotice({ user, config }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Column justifyContent="center" alignItems="center" position="fixed" top="10px" width="100%">
|
<Flexbox justifyContent="space-between" alignItems="center">
|
||||||
<Row width="600px">
|
<AlertBanner title={formatMessage(messages.newVersionAvailable, { version: `v${latest}` })}>
|
||||||
<AlertBanner title={formatMessage(messages.newVersionAvailable, { version: `v${latest}` })}>
|
<Button variant="primary" onPress={handleViewClick}>
|
||||||
<Button variant="primary" onPress={handleViewClick}>
|
{formatMessage(labels.viewDetails)}
|
||||||
{formatMessage(labels.viewDetails)}
|
</Button>
|
||||||
</Button>
|
<Button onPress={handleDismissClick}>{formatMessage(labels.dismiss)}</Button>
|
||||||
<Button onPress={handleDismissClick}>{formatMessage(labels.dismiss)}</Button>
|
</AlertBanner>
|
||||||
</AlertBanner>
|
</Flexbox>
|
||||||
</Row>
|
|
||||||
</Column>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue