-
Notifications
You must be signed in to change notification settings - Fork 15
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 #52 from alleslabs/feat/disconnected-state
feat: add disconnected state [Merge #42 first]
- Loading branch information
Showing
9 changed files
with
94 additions
and
72 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Spinner, Text } from "@chakra-ui/react"; | ||
import { Flex, Spinner, Text } from "@chakra-ui/react"; | ||
|
||
export const Loading = () => { | ||
return ( | ||
<> | ||
<Flex borderY="1px solid" borderColor="divider.main" width="full" py="48px"> | ||
<Spinner size="xl" speed="0.65s" /> | ||
<Text mt="20px">Loading ...</Text> | ||
</> | ||
</Flex> | ||
); | ||
}; |
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,36 @@ | ||
import { Flex, Text } from "@chakra-ui/react"; | ||
|
||
import { ConnectWalletBtn } from "../button/ConnectWallet"; | ||
|
||
interface DisconnectedStateProps { | ||
text: string; | ||
helperText?: string; | ||
} | ||
|
||
export const DisconnectedState = ({ | ||
text, | ||
helperText, | ||
}: DisconnectedStateProps) => { | ||
return ( | ||
<> | ||
<Flex align="center" justify="center"> | ||
<ConnectWalletBtn /> | ||
<Text variant="body1" color="text.dark" ml="8px"> | ||
{text} | ||
</Text> | ||
</Flex> | ||
{helperText && ( | ||
<Text | ||
variant="body1" | ||
color="text.dark" | ||
textAlign="center" | ||
mt="16px" | ||
maxW="520px" | ||
alignSelf="center" | ||
> | ||
{helperText} | ||
</Text> | ||
)} | ||
</> | ||
); | ||
}; |
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
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
a6cd2c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
celatone-frontend-staging – ./
celatone-frontend-staging.vercel.app
celatone-frontend-staging-alles-labs.vercel.app
osmosis-staging.celat.one
celatone-frontend-staging-git-develop-alles-labs.vercel.app