-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from tokamak-network/victor/feature/titan-sun…
…set-warning-modal add bridge warning modal 1.0
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 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
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,64 @@ | ||
import { | ||
Modal, | ||
ModalOverlay, | ||
ModalContent, | ||
ModalBody, | ||
Text, | ||
Button, | ||
Link, | ||
Flex, | ||
} from "@chakra-ui/react"; | ||
import { useState } from "react"; | ||
import useMediaView from "@/hooks/mediaView/useMediaView"; | ||
import { UnorderedList, ListItem } from "@chakra-ui/react"; | ||
|
||
export const TitanSunsetWarningModal10 = () => { | ||
const [isOpen, setIsOpen] = useState<boolean>(true); | ||
const { mobileView } = useMediaView(); | ||
|
||
return ( | ||
<Modal isOpen={isOpen} onClose={() => {}} isCentered> | ||
<ModalOverlay /> | ||
<ModalContent | ||
width={"408px"} | ||
bg="#1F2128" | ||
p={"20px"} | ||
borderRadius={"16px"} | ||
> | ||
<ModalBody | ||
p={0} | ||
display={"flex"} | ||
flexDir={"column"} | ||
rowGap={"16px"} | ||
textAlign={"center"} | ||
color={"#fff"} | ||
> | ||
<Text fontSize={20} fontWeight={500} h={"30px"}> | ||
Warning | ||
</Text> | ||
<Flex flexDir={"column"} alignItems={"start"}> | ||
<Text>Titan Network Shutdown Warning:</Text> | ||
<UnorderedList pl={"5px"} textAlign={"left"} fontSize={"14px"}> | ||
<ListItem>L2 deposits are not available</ListItem> | ||
<ListItem>L2 transactions suspended</ListItem> | ||
<ListItem>L2 balance can only be viewed through L2 RPC</ListItem> | ||
<ListItem>Only Finalize operations supported in history</ListItem> | ||
<ListItem>Claimable list remains clickable</ListItem> | ||
</UnorderedList> | ||
</Flex> | ||
<Button | ||
w={"100%"} | ||
borderRadius={"8px"} | ||
h={mobileView ? "40px" : "48px"} | ||
bgColor={"#007AFF"} | ||
_hover={{}} | ||
_active={{}} | ||
onClick={() => setIsOpen(false)} | ||
> | ||
I understand the risk | ||
</Button> | ||
</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
}; |