-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial work at splitting out generate into two flows. * Finish mnemonic flow. * Convert keystore to state-based component. Remove all redux generate stuff. Remove generate help section. Fix styles. * Add back button, switch to routing instead of state for generate pages. * PR feedback. * Alertify warning at generate. Linkify alternatives. Fix some alert link styles.
- Loading branch information
Showing
45 changed files
with
1,013 additions
and
640 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { Component } from 'react'; | ||
import Keystore from './components/Keystore'; | ||
import Mnemonic from './components/Mnemonic'; | ||
import WalletTypes from './components/WalletTypes'; | ||
import CryptoWarning from './components/CryptoWarning'; | ||
import TabSection from 'containers/TabSection'; | ||
import { RouteComponentProps } from 'react-router-dom'; | ||
|
||
export enum WalletType { | ||
Keystore = 'keystore', | ||
Mnemonic = 'mnemonic' | ||
} | ||
|
||
export default class GenerateWallet extends Component<RouteComponentProps<{}>> { | ||
public render() { | ||
const walletType = this.props.location.pathname.split('/')[2]; | ||
let content; | ||
|
||
if (window.crypto) { | ||
if (walletType === WalletType.Mnemonic) { | ||
content = <Mnemonic />; | ||
} else if (walletType === WalletType.Keystore) { | ||
content = <Keystore />; | ||
} else { | ||
content = <WalletTypes />; | ||
} | ||
} else { | ||
content = <CryptoWarning />; | ||
} | ||
|
||
return ( | ||
<TabSection> | ||
<section className="Tab-content">{content}</section> | ||
</TabSection> | ||
); | ||
} | ||
} |
135 changes: 0 additions & 135 deletions
135
common/containers/Tabs/GenerateWallet/components/DownloadWallet.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.