-
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.
* Deploy dist/embedded into /embedded * Change public path for embedded * embedded: Change browserrouter to hashrouter * Feature #546: Header Translations (#562) * wip translations * finish header translations with subcomponents, reset default language * remove language prop from i18n to be able to use queryparam * fix missing css import * fix css import * fix embedding style * Styles fix for embedded view * Fix normalize.css import * Feature #549: Marketlist Translations (#563) * finish translations on marketlist page * add en translations * missing string in form * hotfix: loading translation keys via webpack * hotfix: font loading * add dashboard translations * hotfix: missing translation string * finish market detail translation strings (#568) * Merge master travis.yml * remove autodll-webpack-plugin * Modify management dev deployment for both interface and embedded * Add staging embedded deployment specs * Feature #547: Modal Translations (#571) * 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 * add max_old_space_size to build-prod * Fix translations merge
- Loading branch information
Showing
15 changed files
with
310 additions
and
249 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -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.