Added a session expired modal
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import React from "react";
|
||||
import { Box, Label, Flex, Button, Text } from "theme-ui";
|
||||
|
||||
import Modal from "../components/Modal";
|
||||
|
||||
function GameExpiredModal({ isOpen, onRequestClose }) {
|
||||
return (
|
||||
<Modal
|
||||
isOpen={isOpen}
|
||||
onRequestClose={onRequestClose}
|
||||
style={{ maxWidth: "450px" }}
|
||||
>
|
||||
<Box>
|
||||
<Label py={2}>Game Timed Out</Label>
|
||||
<Text as="p" mb={2} variant="caption">
|
||||
Reselect your map to pick up where you left off.
|
||||
</Text>
|
||||
<Flex py={2}>
|
||||
<Button sx={{ flexGrow: 1 }} m={1} ml={0} onClick={onRequestClose}>
|
||||
Ok
|
||||
</Button>
|
||||
</Flex>
|
||||
</Box>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
||||
export default GameExpiredModal;
|
||||
Reference in New Issue
Block a user