-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* finish legal modals, finish reward claim modals * finish installmetamask modal, register wallet modal * fix linting errors * add switch network modal, add transaction explanation, unlock modal, verification error-modal, outcome price changed modal * add proptype for t
- Loading branch information
1 parent
97f5c0d
commit b48ee04
Showing
13 changed files
with
220 additions
and
124 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
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
import React from 'react' | ||
import { withNamespaces } from 'react-i18next' | ||
import PropTypes from 'prop-types' | ||
import cn from 'classnames/bind' | ||
import style from './TransactionsExplanation/TransactionExplanation.scss' | ||
|
||
const cx = cn.bind(style) | ||
|
||
const OutcomePriceChanged = ({ closeModal }) => ( | ||
const OutcomePriceChanged = ({ closeModal, t }) => ( | ||
<div className={cx('transactionsExplanation')}> | ||
<div className={cx('closeButton')} onClick={closeModal} /> | ||
<button type="button" className={cx('closeButton')} onClick={closeModal} /> | ||
<h3> | ||
The transaction could not be processed because the trading price changed. <br /> | ||
Please check the new price and try again. | ||
{t('warning.price_changed')} | ||
</h3> | ||
</div> | ||
) | ||
|
||
OutcomePriceChanged.propTypes = { | ||
closeModal: PropTypes.func.isRequired, | ||
t: PropTypes.func.isRequired, | ||
} | ||
|
||
export default OutcomePriceChanged | ||
export default withNamespaces()(OutcomePriceChanged) |
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
Oops, something went wrong.