-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/whitelisting' into development
# Conflicts: # .env.local # .env.mainnet.local # .env.production # .env.testnet # src/app/containers/WalletProvider/index.tsx # src/app/containers/WalletProvider/saga.ts
- Loading branch information
Showing
29 changed files
with
176 additions
and
420 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ REACT_APP_SENTRY_DSN=https://[email protected] | |
|
||
REACT_APP_PORTIS_ID=469a25c8-1101-4c57-823d-c47cb328f788 | ||
|
||
REACT_APP_WHITELIST=true | ||
REACT_APP_WHITELIST_TOKEN=0x576aE218aeCfD4CbD2DBe07250b47e26060932B1 | ||
|
||
REACT_APP_YBUG_ID=3f1jrxvzrhkn1b975t8b | ||
|
||
REACT_APP_MAIL_SRV=https://mailservice.sovryn.app/ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
/** | ||
* | ||
* Asynchronously loads the component for WhitelistedNotification | ||
* | ||
*/ | ||
|
||
import { lazyLoad } from 'utils/loadable'; | ||
|
||
export const WhitelistedNotification = lazyLoad( | ||
() => import('./index'), | ||
module => module.WhitelistedNotification, | ||
); |
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,24 @@ | ||
import React from 'react'; | ||
import { useIsWhitelisted } from '../../hooks/whitelist/useIsWhitelisted'; | ||
import { Icon } from '@blueprintjs/core/lib/esm/components/icon/icon'; | ||
|
||
export function WhitelistedNotification() { | ||
const isWhitelisted = useIsWhitelisted(); | ||
|
||
if (isWhitelisted) return <></>; | ||
|
||
return ( | ||
<div className="container mt-6 mb-4"> | ||
<div className="bg-info sovryn-border rounded p-3 d-flex flex-row justify-content-start align-items-center"> | ||
<div className="ml-3 mr-4"> | ||
<Icon icon="warning-sign" iconSize={26} /> | ||
</div> | ||
<div> | ||
Currently Sovryn is available for invited users only and your wallet | ||
is not yet whitelisted. All interactions is disabled until you switch | ||
to whitelisted wallet or get whitelisted for current one. | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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
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.