-
Notifications
You must be signed in to change notification settings - Fork 24
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
19 changed files
with
421 additions
and
261 deletions.
There are no files selected for viewing
Binary file not shown.
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,45 @@ | ||
import { Button, Flex, Text, VStack } from "@chakra-ui/react"; | ||
import { useRouter } from "next/router"; | ||
import { ChainSelector } from "../wallet"; | ||
|
||
const ConnectionError = ({ errors }: { errors: string[] }) => { | ||
const router = useRouter(); | ||
|
||
return ( | ||
<Flex minH="100vh" alignItems="center" justifyContent="center"> | ||
<VStack> | ||
<VStack fontSize="16px"> | ||
<VStack fontSize="16px"> | ||
<Text>Unable to connect</Text> | ||
{errors.map((e) => { | ||
if (e) { | ||
return <Text>{e}</Text>; | ||
} | ||
})} | ||
</VStack> | ||
|
||
<VStack fontSize="16px" gap={6}> | ||
<Text>Try to refresh</Text> | ||
<Button | ||
variant="pixelated" | ||
onClick={() => { | ||
router.reload(); | ||
}} | ||
> | ||
REFRESH | ||
</Button> | ||
<Text>or switch chain</Text> | ||
<ChainSelector | ||
canChange={true} | ||
onChange={() => { | ||
router.reload(); | ||
}} | ||
/> | ||
</VStack> | ||
</VStack> | ||
</VStack> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default ConnectionError; |
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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import { Image } from "@chakra-ui/react"; | ||
import { Image, Text, VStack } from "@chakra-ui/react"; | ||
|
||
export const Loader = () => { | ||
return <Image src="images/loading.gif" alt="loading" width="60px" height="60px" margin="auto" />; | ||
return ( | ||
<VStack gap={3}> | ||
<Image src="/images/loading.gif" alt="loading" width="60px" height="60px" margin="auto" /> | ||
<Text fontFamily="broken-console" fontSize="12px" color="neon.500">LOADING ...</Text> | ||
</VStack> | ||
); | ||
}; |
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
Oops, something went wrong.