-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implements
LoadingModal
that can be triggered for any loading…
… functionality (#416) Co-authored-by: Gancho Radkov <[email protected]>
- Loading branch information
1 parent
da6f16a
commit 0698423
Showing
6 changed files
with
102 additions
and
39 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
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
34 changes: 34 additions & 0 deletions
34
advanced/wallets/react-wallet-v2/src/views/LoadingModal.tsx
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,34 @@ | ||
import { Col, Divider, Link, Loading, Row, Text, styled } from '@nextui-org/react' | ||
import { CoreTypes } from '@walletconnect/types' | ||
import NewReleasesIcon from '@mui/icons-material/NewReleases' | ||
import RequestModalContainer from '@/components/RequestModalContainer' | ||
import { useSnapshot } from 'valtio' | ||
import ModalStore from '@/store/ModalStore' | ||
|
||
export default function LoadingModal() { | ||
const state = useSnapshot(ModalStore.state) | ||
const message = state.data?.loadingMessage | ||
|
||
return ( | ||
<RequestModalContainer title=""> | ||
<div style={{ textAlign: 'center', padding: '20px' }}> | ||
<Row> | ||
<Col> | ||
<Loading size="lg" /> | ||
</Col> | ||
</Row> | ||
<Row align="center"> | ||
<Col> | ||
<Text h3>Loading your request...</Text> | ||
</Col> | ||
</Row> | ||
{message ? ( | ||
<div style={{ textAlign: 'center' }}> | ||
<Divider y={1} /> | ||
<Text>{message}</Text> | ||
</div> | ||
) : null} | ||
</div> | ||
</RequestModalContainer> | ||
) | ||
} |
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
0698423
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:
vue-dapp-auth – ./advanced/dapps/vue-dapp-auth
vue-dapp-auth-git-main-walletconnect1.vercel.app
vue-dapp-auth-walletconnect1.vercel.app
vue-dapp-auth.vercel.app
0698423
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:
malicious-dapp-verify-simulation – ./advanced/dapps/react-dapp-v2
malicious-app-verify-simulation.vercel.app
web-examples-eta.vercel.app
malicious-dapp-verify-simulation-git-main-walletconnect1.vercel.app
malicious-dapp-verify-simulation-walletconnect1.vercel.app
0698423
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:
react-wallet-v2 – ./advanced/wallets/react-wallet-v2
react-wallet-v2-git-main-walletconnect1.vercel.app
react-web3wallet.vercel.app
react-wallet-v2.vercel.app
react-wallet-v2-walletconnect1.vercel.app
react-wallet.walletconnect.org
react-wallet.walletconnect.com
0698423
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:
react-dapp-v2 – ./advanced/dapps/react-dapp-v2
react-dapp-v2-git-main-walletconnect1.vercel.app
react-dapp-v2.vercel.app
react-app.walletconnect.com
react-dapp-v2-walletconnect1.vercel.app
react-app.walletconnect.org
0698423
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:
react-auth-wallet – ./advanced/wallets/react-wallet-auth
react-auth-wallet.vercel.app
react-auth-wallet-walletconnect1.vercel.app
react-auth-wallet-git-main-walletconnect1.vercel.app
react-auth-wallet.walletconnect.com
0698423
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:
react-auth-dapp – ./advanced/dapps/react-dapp-auth
react-auth-dapp-walletconnect1.vercel.app
react-auth-dapp.vercel.app
react-auth-dapp.walletconnect.com
react-auth-dapp-git-main-walletconnect1.vercel.app