Skip to content

Commit 5589d80

Browse files
Merge 50441c1 into 6689651
2 parents 6689651 + 50441c1 commit 5589d80

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

packages/account/src/Sections/Verification/ProofOfAddress/proof-of-address-form.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const FilesDescription = observer(() => {
5757
});
5858

5959
type TProofOfAddressForm = {
60+
className?: string;
6061
is_resubmit: boolean;
6162
is_for_cfd_modal?: boolean;
6263
onCancel?: () => void;
@@ -73,7 +74,14 @@ type TFormInitialValues = Record<
7374
type TFormState = Record<'is_btn_loading' | 'is_submit_success' | 'should_allow_submit' | 'should_show_form', boolean>;
7475

7576
const ProofOfAddressForm = observer(
76-
({ is_resubmit, is_for_cfd_modal, onSubmit, onSubmitForCFDModal, step_index }: Partial<TProofOfAddressForm>) => {
77+
({
78+
is_resubmit,
79+
is_for_cfd_modal,
80+
onSubmit,
81+
onSubmitForCFDModal,
82+
step_index,
83+
className,
84+
}: Partial<TProofOfAddressForm>) => {
7785
const { client, notifications, ui } = useStore();
7886
const { account_settings, fetchResidenceList, fetchStatesList, getChangeableFields, states_list } = client;
7987
const {
@@ -299,7 +307,11 @@ const ProofOfAddressForm = observer(
299307
<LeaveConfirm onDirty={is_mobile ? showForm : undefined} />
300308
{form_state.should_show_form && (
301309
<form noValidate className='account-form account-form_poa' onSubmit={handleSubmit}>
302-
<ThemedScrollbars height='572px' is_bypassed={!is_for_cfd_modal || is_mobile}>
310+
<ThemedScrollbars
311+
height='572px'
312+
is_bypassed={!is_for_cfd_modal || is_mobile}
313+
className={className}
314+
>
303315
<FormBody scroll_offset={setOffset(status)}>
304316
{status?.msg && (
305317
<HintBox

packages/appstore/src/components/cfds-listing/cfds-listing.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,9 +1003,6 @@
10031003
background-color: var(--color-white);
10041004
}
10051005
}
1006-
.dc-autocomplete {
1007-
margin-bottom: 2.4rem;
1008-
}
10091006
.account-management {
10101007
&__message-icon {
10111008
display: flex;

packages/cfd/src/Components/cfd-poa.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ const CFDPOA = ({ index, onSave, onSubmit }: TCFDPOA) => {
1616

1717
return (
1818
<div className='cfd-proof-of-address'>
19-
<ProofOfAddressForm step_index={index} is_for_cfd_modal onSubmitForCFDModal={onSubmitForCFDModal} />
19+
<ProofOfAddressForm
20+
step_index={index}
21+
is_for_cfd_modal
22+
onSubmitForCFDModal={onSubmitForCFDModal}
23+
className='cfd-proof-of-address__form'
24+
/>
2025
</div>
2126
);
2227
};
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
11
.cfd-proof-of-address {
2-
.dc-themed-scrollbars {
3-
padding: 0.8rem 3rem;
4-
}
5-
6-
.dc-input {
7-
margin-bottom: 0.8rem;
8-
}
92

103
.account__scrollbars_container--grid-layout {
114
@include mobile {
@@ -18,7 +11,7 @@
1811
background-color: var(--general-main-1) !important;
1912
}
2013

21-
.dc-autocomplete {
22-
margin-bottom: 0 !important;
14+
&__form{
15+
padding: 1.6rem 6rem;
2316
}
2417
}

0 commit comments

Comments
 (0)