Skip to content

Commit

Permalink
Applied fixes in PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahdi Aryayi committed Oct 10, 2019
1 parent c633621 commit bbfbdc8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 36 deletions.
25 changes: 0 additions & 25 deletions packages/trader/src/Assets/Common/icon-check.jsx

This file was deleted.

1 change: 0 additions & 1 deletion packages/trader/src/Assets/icon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Icon extends React.PureComponent {
IconBack : React.lazy(() => import('./Common/icon-back.jsx')),
IconCalendarToday : React.lazy(() => import('./Common/icon-calendar-today.jsx')),
IconCalendar : React.lazy(() => import('./Common/icon-calendar.jsx')),
IconCheck : React.lazy(() => import('./Common/icon-check.jsx')),
IconChevronDoubleLeft : React.lazy(() => import('./Common/icon-chevron-double-left.jsx')),
IconChevronDoubleRight: React.lazy(() => import('./Common/icon-chevron-double-right.jsx')),
IconChevronLeft : React.lazy(() => import('./Common/icon-chevron-left.jsx')),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// import PropTypes from 'prop-types';
import React from 'react';
import { Formik, Field } from 'formik';
import classNames from 'classnames';
import {
Autocomplete,
Checkbox,
Expand All @@ -25,7 +26,6 @@ import FormSubmitErrorMessage from '../../ErrorMessages/FormSub
import LoadErrorMessage from '../../ErrorMessages/LoadErrorMessage';
import { LeaveConfirm } from '../../../Components/leave-confirm.jsx';
import { FormFooter, FormBody, FormSubHeader } from '../../../Components/layout-components.jsx';
import Icon from '../../../../../Assets/icon.jsx';

const getResidence = (residence_list, value, type) => {
const residence = residence_list.find(location =>
Expand Down Expand Up @@ -587,11 +587,13 @@ class PersonalDetailsForm extends React.Component {
<FormFooter>
{status && status.msg && <FormSubmitErrorMessage message={status.msg} />}
<div className='account-form__footer-note'>
Please make sure your information is correct or
it may affect your trading experience.
{ localize('Please make sure your information is correct or it may affect your trading experience.') }
</div>
<Button
className='account-form__footer-btn btn--primary--green'
className={classNames('account-form__footer-btn', {
'btn--primary--default': !is_submit_success,
'btn--primary--green' : is_submit_success,
})}
type='submit'
is_disabled={isSubmitting || (
this.props.is_virtual ?
Expand All @@ -612,7 +614,7 @@ class PersonalDetailsForm extends React.Component {
has_effect
is_loading={is_btn_loading}
is_submit_success={is_submit_success}
icon={<Icon icon='IconCheck' />}
text={localize('Next')}
/>
</FormFooter>
</form>
Expand Down
5 changes: 0 additions & 5 deletions packages/trader/src/sass/app/modules/account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,6 @@
margin-bottom: 0;
margin-right: 0;
min-width: 6.4em;

.btn__icon {
line-height: 0;
padding: 0;
}
}
}
}
Expand Down

0 comments on commit bbfbdc8

Please sign in to comment.