forked from bitshares/bitshares-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add wallet migration notice for bitshares.org/wallet fix bitshares#635
- Loading branch information
Showing
8 changed files
with
82 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from "react"; | ||
import WalletDb from "stores/WalletDb"; | ||
import Settings from "./components/Settings/SettingsContainer"; | ||
import Translate from "react-translate-component"; | ||
|
||
export default class Deprecate extends React.Component { | ||
hasWallet() { | ||
return !!WalletDb.getWallet(); | ||
} | ||
|
||
renderForWallet() { | ||
return ( | ||
<div> | ||
<Translate content="migration.text_1" component="h4" /> | ||
<Translate content="migration.text_2" component="p" unsafe /> | ||
|
||
|
||
<Settings {...this.props} deprecated /> | ||
|
||
|
||
</div> | ||
); | ||
} | ||
|
||
renderForCloud() { | ||
return ( | ||
<div> | ||
<Translate content="migration.text_3" unsafe component="p" /> | ||
</div> | ||
); | ||
} | ||
|
||
render() { | ||
return ( | ||
<div className="grid-frame vertical"> | ||
<div className="grid-block"> | ||
<div className="grid-content" style={{paddingTop: "2rem"}}> | ||
<Translate content="migration.title" component="h2" /> | ||
<Translate content="migration.announcement_1" unsafe component="p" /> | ||
<p><a href="https://wallet.bitshares.org" target='blank' rel='noopener noreferrer'>https://wallet.bitshares.org</a></p> | ||
{this.hasWallet() ? this.renderForWallet() : this.renderForCloud()} | ||
</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