-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from "react" | ||
import { | ||
ModalHeader, | ||
ModalBody, | ||
ModalFooter, | ||
Button, | ||
Spinner, | ||
Stack, | ||
} from "@chakra-ui/react" | ||
|
||
import { TextMd } from "../../../shared/Typography" | ||
import { PauseIcon } from "../../../../utils/customIcons" | ||
|
||
export default function PausingModal({ | ||
onResume, | ||
onClose, | ||
}: { | ||
onResume: () => void | ||
onClose: () => void | ||
}) { | ||
return ( | ||
<> | ||
<ModalHeader>Paused</ModalHeader> | ||
<ModalBody textAlign="start" py={6} mx={3}> | ||
<Stack | ||
position="relative" | ||
display="flex" | ||
justifyContent="center" | ||
alignItems="center" | ||
> | ||
<Spinner | ||
thickness="3px" | ||
speed="0.65s" | ||
emptyColor="gold.400" | ||
color="brand.400" | ||
size="xl" | ||
/> | ||
<PauseIcon position="absolute" /> | ||
</Stack> | ||
|
||
<TextMd>Are your sure you want to cancel?</TextMd> | ||
</ModalBody> | ||
<ModalFooter flexDirection="column" gap={2}> | ||
<Button size="lg" width="100%" onClick={onResume}> | ||
Resume deposit | ||
</Button> | ||
<Button size="lg" width="100%" variant="outline" onClick={onClose}> | ||
Yes, cancel | ||
</Button> | ||
</ModalFooter> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react" | ||
import { createIcon } from "@chakra-ui/react" | ||
|
||
export const PauseIcon = createIcon({ | ||
displayName: "PauseIcon", | ||
viewBox: "0 0 18 20", | ||
path: ( | ||
<path | ||
d="M2 18V2M16 18V2" | ||
stroke="#F34900" | ||
strokeWidth="3" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
), | ||
}) |