Skip to content

Commit

Permalink
fix(Order History Table): to be received for pending orders
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Aug 9, 2018
1 parent b342a69 commit 6c9d632
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,10 @@
{
"defaultMessage": "Received",
"id": "scenes.buysell.orderhistory.list.received"
},
{
"defaultMessage": "To Be Received",
"id": "scenes.buysell.orderhistory.list.tobereceived"
}
],
"path": "src/components/BuySell/OrderHistoryTable/index.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,7 @@
"scenes.buysell.orderhistory.list.date": "Date",
"scenes.buysell.orderhistory.list.exchanged": "Exchanged",
"scenes.buysell.orderhistory.list.received": "Received",
"scenes.buysell.orderhistory.list.tobereceived": "To Be Received",
"scenes.buysell.orderhistory.list.status": "Status",
"scenes.buysell.orderhistory.recurring.cancelorder": "Cancel Recurring Order",
"scenes.buysell.orderhistory.recurring.date": "Date",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,6 @@ const selectMessage = (message, data = undefined) => {
defaultMessage='Mobile number has been successfully updated. Verification SMS has been sent.'
/>
)
case C.MOBILE_RESEND_SUCCESS:
return (
<FormattedMessage
id='components.alerts.mobile_resend_success'
defaultMessage='Verification SMS has been sent.'
/>
)
case C.MOBILE_VERIFY_ERROR:
return (
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class OrderHistoryTable extends React.PureComponent {
status,
cancelTradeId,
canTrade,
pending,
partner
} = this.props

Expand Down Expand Up @@ -58,10 +59,17 @@ class OrderHistoryTable extends React.PureComponent {
</TableCell>
<TableCell width='20%' mobileWidth='35%'>
<Text size='13px' weight={500} capitalize>
<FormattedMessage
id='scenes.buysell.orderhistory.list.received'
defaultMessage='Received'
/>
{pending ? (
<FormattedMessage
id='scenes.buysell.orderhistory.list.tobereceived'
defaultMessage='To Be Received'
/>
) : (
<FormattedMessage
id='scenes.buysell.orderhistory.list.received'
defaultMessage='Received'
/>
)}
</Text>
</TableCell>
</TableHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default ({ coreSagas }) => {
const resendMobile = function*(action) {
try {
yield call(coreSagas.settings.setMobile, action.payload)
yield put(actions.alerts.displaySuccess(C.MOBILE_RESEND_SUCCESS))
yield put(actions.alerts.displaySuccess(C.SMS_RESEND_SUCCESS))
} catch (e) {
yield put(actions.logs.logErrorMessage(logLocation, 'resendMobile', e))
yield put(actions.alerts.displayError(C.MOBILE_UPDATE_ERROR))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const OrderHistory = props => {
</Text>
<OrderHistoryTable
trades={pendingTrades}
pending
conversion={conversion}
handleFinishTrade={trade => finishTrade(trade)}
handleDetailsClick={trade =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ const Success = props => {
</Text>
<OrderHistoryTable
trades={filter(isPending, trades)}
pending
conversion={conversion}
handleDetailsClick={trade =>
showModal('SfoxTradeDetails', { trade })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const MOBILE_LOGIN_ERROR_QRCODE_EXPIRED =
export const MOBILE_LOGIN_SCAN_ERROR = 'mobile_login_scan_error'
export const MOBILE_UPDATE_ERROR = 'mobile_update_error'
export const MOBILE_UPDATE_SUCCESS = 'mobile_update_success'
export const MOBILE_RESEND_SUCCESS = 'mobile_resend_success'
export const MOBILE_VERIFY_ERROR = 'mobile_verify_error'
export const MOBILE_VERIFY_SUCCESS = 'mobile_verify_success'
export const NEW_ADDRESS_GENERATE_ERROR = 'new_address_generate_error'
Expand Down

0 comments on commit 6c9d632

Please sign in to comment.