File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { useEffect , useCallback , useState } from 'react' ;
2- import { Button , AlertBanner , Flexbox } from '@umami/react-zen' ;
2+ import { Button , AlertBanner , Column , Row } from '@umami/react-zen' ;
33import { setItem } from '@/lib/storage' ;
44import { useVersion , checkVersion } from '@/store/version' ;
55import { 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}
You can’t perform that action at this time.
0 commit comments