Added force update handling

This commit is contained in:
Nicola Thouliss
2021-04-11 18:01:34 +10:00
parent 9cf2b35f1e
commit 3a29974ca5
3 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
import React from "react";
import { Box, Label, Text } from "theme-ui";
import Modal from "../components/Modal";
function ForceUpdateModal({ isOpen }) {
return (
<Modal
isOpen={isOpen}
allowClose={false}
style={{ maxWidth: "450px" }}
>
<Box>
<Label py={2}>New Update Available</Label>
<Text as="p" mb={2} variant="caption">
Please refresh your browser to update to the latest version.
</Text>
</Box>
</Modal>
);
}
export default ForceUpdateModal;