-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10a0102
commit 829f158
Showing
3 changed files
with
49 additions
and
0 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,43 @@ | ||
import {remote} from 'electron'; | ||
import React from 'react'; | ||
import {Trans} from 'react-i18next'; | ||
import Modal from 'components/Modal'; | ||
import ExternalLink from 'components/ExternalLink'; | ||
import {instance, translate} from '../../translate'; | ||
|
||
const config = remote.require('./config'); | ||
const t = translate('dashboard'); | ||
|
||
class Intro extends React.Component { | ||
state = { | ||
shouldOpen: !config.get('hasShownDashboardIntro'), | ||
} | ||
|
||
closedHandler = () => { | ||
config.set('hasShownDashboardIntro', true); | ||
this.setState({shouldOpen: false}); | ||
}; | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<Modal | ||
title={t('intro.title')} | ||
open={this.state.shouldOpen} | ||
didClose={this.closedHandler} | ||
width="500px" | ||
> | ||
<Trans i18n={instance} i18nKey="intro.description" t={t}> | ||
<p>Please keep in mind <strong>this project is still in Alpha</strong>.</p> | ||
<p>Although loss of funds is unlikely, you should only trade with real currency if you can take that risk.</p> | ||
<p>If you just want to test HyperDEX, try trading between the test currencies <strong>BEER</strong> and <strong>PIZZA</strong> instead. You can get free <strong>BEER</strong> at the <ExternalLink url="https://www.atomicexplorer.com/#/faucet"><strong>BEER</strong> faucet</ExternalLink>.</p> | ||
<p>HyperDEX is Open Source software provided &qoute;as is&qoute;, without warranty of any kind. The authors or copyright holders are not liable for any damages caused as a result of using this software.</p> | ||
<p>By using HyperDEX you are agreeing to the terms of the <ExternalLink url="https://github.com/hyperdexapp/hyperdex/blob/master/LICENSE">MIT License</ExternalLink>.</p> | ||
</Trans> | ||
</Modal> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Intro; |
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