-
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.
Closes: #110 When a user leaves the staking flow, the user is asked for confirmation. Figma: https://www.figma.com/file/OUdSfHsmgV8EJpWxAzXjl5/Design-Tasks?type=design&node-id=3799-15142&mode=design&t=1vG9C2eujbt5Q5tk-4
- Loading branch information
Showing
9 changed files
with
136 additions
and
11 deletions.
There are no files selected for viewing
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="currentColor" | ||
strokeWidth="3" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
), | ||
}) |
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,42 @@ | ||
import React from "react" | ||
import { | ||
ModalHeader, | ||
ModalBody, | ||
ModalFooter, | ||
Button, | ||
HStack, | ||
} from "@chakra-ui/react" | ||
|
||
import Spinner from "#/components/shared/Spinner" | ||
import { PauseIcon } from "#/assets/icons" | ||
import { TextMd } from "#/components/shared/Typography" | ||
|
||
export default function ResumeModal({ | ||
onResume, | ||
onClose, | ||
}: { | ||
onResume: () => void | ||
onClose: () => void | ||
}) { | ||
return ( | ||
<> | ||
<ModalHeader>Paused</ModalHeader> | ||
<ModalBody textAlign="start" py={6} mx={3}> | ||
<HStack position="relative" justifyContent="center"> | ||
<Spinner size="xl" /> | ||
<PauseIcon position="absolute" boxSize={6} color="brand.400" /> | ||
</HStack> | ||
|
||
<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