Skip to content

Commit

Permalink
feat(edd of interest): improved code base and typos has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
milan-bc committed Dec 31, 2021
1 parent 5aa4679 commit 2b402dc
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,13 @@ type MessagesType = {
'modals.interest.withdrawal.supply_information_description_2': 'Please submit the additional information so we can start processing your withdrawal.'
'modals.interest.withdrawal.totalinterest': 'Total Rewards Earned'
'modals.interest.withdrawal.warning': 'In the last month you have earned {pendingInterestCrypto} in rewards. Once you withdraw {withdrawalAmount} ({withdrawalAmountCrypto}), you will continue to earn rewards on the remaining balance.'
'modals.interest.withdrawal.upload_documents.get_started.title': 'Upload & Verify'
'modals.interest.withdrawal.upload_documents.upload_and_verify.please_upload': 'Please upload a high resolution file ({files}) of each item below. Max file size is {maxSize}MB each.'
'modals.interest.withdrawal.upload_documents.get_started.proof_of_current_address': 'Proof of Current Address'
'modals.interest.withdrawal.upload_documents.get_started.bank_account_statement': 'Bank Account Statement or Utility Bill'
'modals.interest.withdrawal.upload_documents.get_started.source_of_wealth.source_of_wealth': 'Source of Wealth'
'modals.interest.withdrawal.upload_documents.get_started.source_of_wealth.bank_account_stub': 'Bank Account Statement or Pay Stub/Slip.'
'modals.interest.withdrawal.upload_documents.get_started.bank_account_statement.description': 'Must be dated within the last 90 days or a council tax bill for the current tax year.'
'modals.interestpromo.button': 'Start Earning Now'
'modals.interestpromo.dont_show_again': 'Don’t show again'
'modals.interestpromo.title': 'Earn {interestRate}% Rewards on your {coin}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Title = styled(Text)`
text-align: center;
`

const Subcontent = styled(Text)`
const SubContent = styled(Text)`
margin-bottom: 56px;
text-align: center;
`
Expand All @@ -32,13 +32,13 @@ const BuySellLimitReached: React.FC<Props> = ({ handleClose, limitNumber }) => (
defaultMessage="You've reached your limit"
/>
</Title>
<Subcontent color='grey600' weight={500}>
<SubContent color='grey600' weight={500}>
<FormattedMessage
id='modals.simplebuy.limit_reached_sub_title'
defaultMessage='The maximum amount of pending orders is {limitNumber}'
values={{ limitNumber }}
/>
</Subcontent>
</SubContent>
</div>
<FlyoutFooter>
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ const GetStarted = ({ nextStep, previousStep }: Props) => {
</TierTitle>
<ItemSubtitle color='grey900' size='14px' weight={500}>
<FormattedMessage
id='modals.interest.withdrawal.upload_documents.get_started.bank_acccount_statement'
id='modals.interest.withdrawal.upload_documents.get_started.bank_account_statement'
defaultMessage='Bank Account Statement or Utility Bill'
/>
</ItemSubtitle>

<Text color='grey600' lineHeight='1.5' size='12px' weight={500}>
<FormattedMessage
id='modals.interest.withdrawal.upload_documents.get_started.bank_acccount_statement.description'
id='modals.interest.withdrawal.upload_documents.get_started.bank_account_statement.description'
defaultMessage='Must be dated within the last 90 days or a council tax bill for the current tax year.'
/>
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
categories: ['PROOF_OF_ADDRESS', 'PROOF_OF_INCOME', 'OTHER'],
maxAllowedFileSizeMBs: 5,
maxNumAllowedFiles: 8,
validTypes: ['jpg', 'png', 'heic']
validTypes: ['jpg', 'png']
},
nextStep: () => {},
previousStep: () => {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const UploadAndVerify: React.FC<Props> = (props) => {
const getCategory = (name: string) =>
name.includes('proofOfAddress') ? 'PROOF_OF_ADDRESS' : 'PROOF_OF_INCOME'

const submitUplaodedFiles = () => {
const submitUploadedFiles = () => {
setIsUploading(true)
const files: FileUploadItem[] = []
// we had to do async converting files into base64
Expand Down Expand Up @@ -204,14 +204,14 @@ const UploadAndVerify: React.FC<Props> = (props) => {
</Title>
<Subtitle color='grey900' size='14px' weight={500} lineHeight='20px'>
<FormattedMessage
id='modals.interest.withdrawal.upload_documents.get_started.bank_acccount_statement'
id='modals.interest.withdrawal.upload_documents.get_started.bank_account_statement'
defaultMessage='Bank Account Statement or Utility Bill'
/>
</Subtitle>

<Text color='grey600' lineHeight='1.5' size='12px' weight={500}>
<FormattedMessage
id='modals.interest.withdrawal.upload_documents.get_started.bank_acccount_statement.description'
id='modals.interest.withdrawal.upload_documents.get_started.bank_account_statement.description'
defaultMessage='Must be dated within the last 90 days or a council tax bill for the current tax year.'
/>
</Text>
Expand Down Expand Up @@ -315,7 +315,7 @@ const UploadAndVerify: React.FC<Props> = (props) => {
fullwidth
height='48px'
style={{ marginTop: '16px' }}
onClick={() => submitUplaodedFiles()}
onClick={() => submitUploadedFiles()}
disabled={disable}
>
<FormattedMessage id='buttons.submit' defaultMessage='Submit' />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useCallback } from 'react'
import { FormattedMessage } from 'react-intl'
import styled from 'styled-components'

import { FiatType } from '@core/types'
import { Button, Image, Link, Text } from 'blockchain-info-components'

import Container from '../Container'
Expand Down

0 comments on commit 2b402dc

Please sign in to comment.