mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
Merge pull request #743 from embark-framework/feature/hide-alert-on-ipfs
Display alert only when not ipfs
This commit is contained in:
commit
7ef531aacc
@ -151,6 +151,10 @@ class Storage extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isIpfs(){
|
||||||
|
return EmbarkJS.Storage.currentProviderName === 'ipfs';
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <React.Fragment>
|
return <React.Fragment>
|
||||||
{
|
{
|
||||||
@ -215,7 +219,7 @@ class Storage extends React.Component {
|
|||||||
</FormGroup>
|
</FormGroup>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
||||||
<Alert bsStyle="warning">The 2 functions below are only available with IPFS</Alert>
|
{!this.isIpfs() && <Alert bsStyle="warning">The 2 functions below are only available with IPFS</Alert>}
|
||||||
|
|
||||||
<h3>Register to IPNS</h3>
|
<h3>Register to IPNS</h3>
|
||||||
<Form inline onKeyDown={(e) => this.checkEnter(e, this.ipnsRegister)}>
|
<Form inline onKeyDown={(e) => this.checkEnter(e, this.ipnsRegister)}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user