Skip to content

Commit b5795a8

Browse files
committed
Fixed update notice.
1 parent 9809200 commit b5795a8

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

src/app/(main)/UpdateNotice.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useCallback, useState } from 'react';
2-
import { Button, AlertBanner, Flexbox } from '@umami/react-zen';
2+
import { Button, AlertBanner, Column, Row } from '@umami/react-zen';
33
import { setItem } from '@/lib/storage';
44
import { useVersion, checkVersion } from '@/store/version';
55
import { REPO_URL, VERSION_CHECK } from '@/lib/constants';
@@ -47,13 +47,15 @@ export function UpdateNotice({ user, config }) {
4747
}
4848

4949
return (
50-
<Flexbox justifyContent="space-between" alignItems="center">
51-
<AlertBanner title={formatMessage(messages.newVersionAvailable, { version: `v${latest}` })}>
52-
<Button variant="primary" onPress={handleViewClick}>
53-
{formatMessage(labels.viewDetails)}
54-
</Button>
55-
<Button onPress={handleDismissClick}>{formatMessage(labels.dismiss)}</Button>
56-
</AlertBanner>
57-
</Flexbox>
50+
<Column justifyContent="center" alignItems="center" position="fixed" top="10px" width="100%">
51+
<Row width="600px">
52+
<AlertBanner title={formatMessage(messages.newVersionAvailable, { version: `v${latest}` })}>
53+
<Button variant="primary" onPress={handleViewClick}>
54+
{formatMessage(labels.viewDetails)}
55+
</Button>
56+
<Button onPress={handleDismissClick}>{formatMessage(labels.dismiss)}</Button>
57+
</AlertBanner>
58+
</Row>
59+
</Column>
5860
);
5961
}

0 commit comments

Comments
 (0)