mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-03 06:03:21 +03:00
parent
b343f975fb
commit
cd823fe118
@ -1,8 +1,9 @@
|
||||
import { useAppUpdater } from '@affine/core/hooks/use-app-updater';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
import { AppUpdaterButton } from '../app-sidebar';
|
||||
|
||||
export const UpdaterButton = () => {
|
||||
const UpdaterButtonInner = () => {
|
||||
const appUpdater = useAppUpdater();
|
||||
|
||||
return (
|
||||
@ -20,3 +21,11 @@ export const UpdaterButton = () => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export const UpdaterButton = () => {
|
||||
return (
|
||||
<Suspense>
|
||||
<UpdaterButtonInner />
|
||||
</Suspense>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user