lint
This commit is contained in:
parent
e68a69641c
commit
ebf7242051
1 changed files with 2 additions and 20 deletions
|
|
@ -92,8 +92,8 @@ export function Updatable(props: CommonProps) {
|
||||||
setUpdates([]);
|
setUpdates([]);
|
||||||
|
|
||||||
showToast("No updates found!", "message", {
|
showToast("No updates found!", "message", {
|
||||||
position: ToastPosition.BOTTOM
|
position: ToastPosition.BOTTOM
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|
@ -131,24 +131,6 @@ export function Updatable(props: CommonProps) {
|
||||||
Update Now
|
Update Now
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Button
|
|
||||||
disabled={isUpdating || isChecking}
|
|
||||||
onClick={runWithDispatch(setIsChecking, async () => {
|
|
||||||
const outdated = await checkForUpdates();
|
|
||||||
|
|
||||||
if (outdated) {
|
|
||||||
setUpdates(changes);
|
|
||||||
} else {
|
|
||||||
setUpdates([]);
|
|
||||||
|
|
||||||
showToast("No updates found!", "message", {
|
|
||||||
position: ToastPosition.BOTTOM
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
Check for Updates
|
|
||||||
</Button>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
{!updates && updateError ? (
|
{!updates && updateError ? (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue