Skip to content

Commit

Permalink
Merge branch 'master' of github.com:deriv-com/p2p into drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
niloofar-deriv committed Jun 13, 2024
2 parents 94e845f + eec8776 commit 3ab52e8
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
border-radius: 8px;

@include mobile {
max-width: calc(100% - 3.2rem);
max-width: calc(100vw - 3.2rem);
}

&__body {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Wizard/Wizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Wizard = <T extends ReactNode>({

return (
<div className={clsx('wizard', className)}>
{nav && isValidElement(nav) && cloneElement(nav, properties)}
{isValidElement(nav) && nav}
{childrenWithProps}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/my-ads/components/AdFormInput/AdFormInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type TAdFormInputProps = ComponentProps<typeof Input> & {
};

const AdFormInput = ({
hint = <div />,
hint = <span />,
isDisabled = false,
label,
name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const AdTypeSection = ({ currency, localCurrency, onCancel, rateType, ...props }
currency,
})
) : (
<div />
<span />
)
}
isDisabled={isEdit}
Expand Down
7 changes: 0 additions & 7 deletions src/pages/my-ads/components/AdWizard/AdWizard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@
}
}

.wizard__main-step {
@include desktop {
max-height: calc(100vh - 35rem);
overflow-y: auto;
}
}

.form-progress {
background-color: #f2f3f4;
margin-top: 2rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 1.2rem 0;
padding: 0.3rem 1.2rem;
border-radius: 4px;
border: 1px solid #d6dadb;
margin-bottom: 2rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
&__items {
top: unset;
bottom: 7rem;
bottom: 5rem;
max-height: 20rem;
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/pages/my-ads/screens/CreateEditAd/CreateEditAd.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.create-edit-ad {
@include desktop {
max-height: calc(100vh - 19rem);
overflow-y: auto;
}
}
3 changes: 2 additions & 1 deletion src/pages/my-ads/screens/CreateEditAd/CreateEditAd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { api } from '@/hooks';
import { useFloatingRate, useModalManager, useQueryString } from '@/hooks/custom-hooks';
import { Loader } from '@deriv-com/ui';
import { AdWizard } from '../../components';
import './CreateEditAd.scss';

const getSteps = (isEdit = false) => {
const text = isEdit ? 'Edit' : 'Set';
Expand Down Expand Up @@ -223,7 +224,7 @@ const CreateEditAd = () => {
return (
<>
<FormProvider {...methods}>
<form onSubmit={handleSubmit(onSubmit)}>
<form className='create-edit-ad' onSubmit={handleSubmit(onSubmit)}>
<AdWizard
countryList={countryList as TCountryListItem}
currency={activeAccount?.currency as TCurrency}
Expand Down

0 comments on commit 3ab52e8

Please sign in to comment.