mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
prettier
This commit is contained in:
parent
6b237e7348
commit
3235dc1d5e
@ -29,4 +29,5 @@ export const faucetUri =
|
||||
export const verbose = true
|
||||
export const analyticsId = 'UA-60614729-11'
|
||||
export const allowPricing = process.env.REACT_APP_ALLOW_PRICING || false
|
||||
export const showRequestTokens = process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON || false
|
||||
export const showRequestTokens =
|
||||
process.env.REACT_APP_SHOW_REQUEST_TOKENS_BUTTON || false
|
||||
|
@ -28,7 +28,6 @@ class Faucet extends PureComponent<{}, FaucetState> {
|
||||
}
|
||||
|
||||
private getTokens = async () => {
|
||||
|
||||
const { ocean } = this.context
|
||||
const accounts = await ocean.accounts.list()
|
||||
const account = accounts[0]
|
||||
@ -126,9 +125,7 @@ class Faucet extends PureComponent<{}, FaucetState> {
|
||||
>
|
||||
Request Tokens
|
||||
</Button>
|
||||
<p>
|
||||
You can request tokens every once in a while.
|
||||
</p>
|
||||
<p>You can request tokens every once in a while.</p>
|
||||
</>
|
||||
)
|
||||
|
||||
@ -158,21 +155,19 @@ class Faucet extends PureComponent<{}, FaucetState> {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{
|
||||
showRequestTokens ?
|
||||
<div className={styles.action}>
|
||||
{isLoading ? (
|
||||
<Spinner message="Getting Tokens..."/>
|
||||
) : error ? (
|
||||
<this.Error/>
|
||||
) : success ? (
|
||||
<this.Success/>
|
||||
) : (
|
||||
isLogged && <this.GetTokens />
|
||||
)}
|
||||
</div> : null
|
||||
}
|
||||
|
||||
{showRequestTokens ? (
|
||||
<div className={styles.action}>
|
||||
{isLoading ? (
|
||||
<Spinner message="Getting Tokens..." />
|
||||
) : error ? (
|
||||
<this.Error />
|
||||
) : success ? (
|
||||
<this.Success />
|
||||
) : (
|
||||
isLogged && <this.GetTokens />
|
||||
)}
|
||||
</div>
|
||||
) : null}
|
||||
</Content>
|
||||
</Route>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user