Skip to content

Commit

Permalink
fix: issues during conflict resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
nijil-deriv committed May 24, 2023
1 parent 2b86910 commit 48dcdce
Show file tree
Hide file tree
Showing 10 changed files with 22,879 additions and 43,751 deletions.
66,578 changes: 22,869 additions & 43,709 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ const IdvDocumentSubmit = ({
const [document_list, setDocumentList] = React.useState<object[]>([]);
const [document_image, setDocumentImage] = React.useState<string | null>(null);
const [is_input_disable, setInputDisable] = React.useState(true);
const [selected_doc, setSelectedDoc] = React.useState(null);
const [selected_doc, setSelectedDoc] = React.useState<string | null>(null);
const [input_value, setInputValue] = React.useState('');

const document_data = selected_country.identity.services.idv.documents_supported;

Expand Down Expand Up @@ -273,19 +274,12 @@ const IdvDocumentSubmit = ({
example_format: string;
}) => {
if (item.text === 'No results found' || !item.text) {
<<<<<<< HEAD:packages/account/src/Components/poi/idv-document-submit/idv-document-submit.tsx
setSelectedDoc('');
resetDocumentItemSelected(setFieldValue);
} else {
if (typeof setFieldValue === 'function') {
setFieldValue('document_type', item, true);
}
=======
setSelectedDoc(null);
resetDocumentItemSelected(setFieldValue);
} else {
setFieldValue('document_type', item, true);
>>>>>>> b1d739a041 (chore: update feature branch with master (#8525)):packages/account/src/Components/poi/idv-document-submit/idv-document-submit.jsx
setSelectedDoc(item.id);
if (has_visual_sample) {
setDocumentImage(item.sample_image || '');
Expand Down Expand Up @@ -314,13 +308,9 @@ const IdvDocumentSubmit = ({
);
if (selected_document) {
setSelectedDoc(selected_document.id);
<<<<<<< HEAD:packages/account/src/Components/poi/idv-document-submit/idv-document-submit.tsx
if (typeof setFieldValue === 'function') {
setFieldValue('document_type', selected_document, true);
}
=======
setFieldValue('document_type', selected_document, true);
>>>>>>> b1d739a041 (chore: update feature branch with master (#8525)):packages/account/src/Components/poi/idv-document-submit/idv-document-submit.jsx
if (has_visual_sample) {
setDocumentImage(selected_document.sample_image);
}
Expand Down Expand Up @@ -351,11 +341,7 @@ const IdvDocumentSubmit = ({
errors?.error_message
}
autoComplete='off'
<<<<<<< HEAD:packages/account/src/Components/poi/idv-document-submit/idv-document-submit.tsx
placeholder={generatePlaceholderText(selected_doc || '')}
=======
placeholder={generatePlaceholderText(selected_doc)}
>>>>>>> b1d739a041 (chore: update feature branch with master (#8525)):packages/account/src/Components/poi/idv-document-submit/idv-document-submit.jsx
value={values.document_number}
onPaste={preventEmptyClipboardPaste}
onBlur={handleBlur}
Expand Down
3 changes: 0 additions & 3 deletions packages/appstore/src/modules/traders-hub/traders-hub.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
max-width: 123.2rem;
margin: auto;
padding: 2.4rem 0;
<<<<<<< HEAD
=======
background-color: var(--general-section-1);
>>>>>>> 5bd27894e3 (Sergei / wall 272 / wallet desktop header (#8334))

@include mobile {
padding: 2rem;
Expand Down
2 changes: 1 addition & 1 deletion packages/bot-web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"dependencies": {
"@deriv/bot-skeleton": "^1.0.0",
"@deriv/components": "^1.0.0",
"@deriv/deriv-charts": "1.1.9",
"@deriv/deriv-charts": "1.2.1",
"@deriv/shared": "^1.0.0",
"@deriv/translations": "^1.0.0",
"classnames": "^2.2.6",
Expand Down
1 change: 0 additions & 1 deletion packages/cashier/src/pages/withdrawal/withdrawal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import SideNote from '../../components/side-note';
import USDTSideNote from '../../components/usdt-side-note';
import { Virtual } from '../../components/cashier-container';
import { useCashierStore } from '../../stores/useCashierStores';
import { useCashierLocked, useIsSystemMaintenance } from '@deriv/hooks';

type TWithdrawalSideNoteProps = {
currency: string;
Expand Down
2 changes: 2 additions & 0 deletions packages/components/stories/icon/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export const icons =
'IcAlertInfo',
'IcAlertSuccess',
'IcAlertTrustpilot',
'IcAlertWarningDark',
'IcAlertWarning',
'IcAmplifier',
'IcArchive',
Expand Down Expand Up @@ -364,6 +365,7 @@ export const icons =
'IcEmailOutlineNew',
'IcEmailOutline',
'IcEmailSentDashboard',
'IcEmailSentExpired',
'IcEmailSentP2p',
'IcEmailSent',
'IcEmailSpam',
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/Stores/client-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -1107,10 +1107,6 @@ export default class ClientStore extends BaseStore {
this.is_authorize = value;
}

setIsAuthorize(value) {
this.is_authorize = value;
}

getBasicUpgradeInfo() {
const upgradeable_landing_companies = [
...new Set(State.getResponse('authorize.upgradeable_landing_companies')),
Expand Down
1 change: 1 addition & 0 deletions packages/hooks/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { default as useAccountTransferVisible } from './useAccountTransferVisible';
export { default as useCfdAccounts } from './useCfdAccounts';
export { default as useCFDAllAccounts } from './useCFDAllAccounts';
export { default as useCFDDemoAccounts } from './useCFDDemoAccounts';
export { default as useCFDRealAccounts } from './useCFDRealAccounts';
Expand Down
19 changes: 4 additions & 15 deletions packages/stores/src/mockStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@ const mock = (): TStores & { is_mock: boolean } => {
return {
is_mock: true,
client: {
accounts: {
loginid: {
account_type: 'trading',
created_at: 1674633682,
currency: 'USD',
is_disabled: 0,
is_virtual: 0,
excluded_until: 0,
landing_company_name: 'svg',
},
},
account_settings: {},
accounts: {},
active_account_landing_company: '',
account_limits: {
daily_transfers: {
Expand Down Expand Up @@ -285,6 +276,8 @@ const mock = (): TStores & { is_mock: boolean } => {
is_real: false,
selectRegion: jest.fn(),
is_low_risk_cr_eu_real: false,
is_real_wallets_upgrade_on: false,
toggleWalletsUpgrade: jest.fn(),
is_demo: false,
financial_restricted_countries: false,
selected_account_type: 'real',
Expand All @@ -295,10 +288,6 @@ const mock = (): TStores & { is_mock: boolean } => {
setTogglePlatformType: jest.fn(),
setSelectedAccount: jest.fn(),
toggleAccountTransferModal: jest.fn(),
show_wallet_consent_popup: false,
setShouldShowWalletConsentPopup: jest.fn(),
is_real_wallets_upgrade_on: false,
toggleWalletsUpgrade: jest.fn(),
},
menu: {
attach: jest.fn(),
Expand Down
2 changes: 0 additions & 2 deletions packages/stores/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,6 @@ type TTradersHubStore = {
setSelectedAccount: (account: { login?: string; account_id?: string }) => void;
toggleAccountTransferModal: () => void;
is_demo: boolean;
show_wallet_consent_popup: boolean;
setShouldShowWalletConsentPopup: (value: boolean) => void;
is_real_wallets_upgrade_on: boolean;
toggleWalletsUpgrade: (value: boolean) => void;
};
Expand Down

0 comments on commit 48dcdce

Please sign in to comment.