Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
fix: wizard ui, sroll and api call
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitK-deriv committed Nov 23, 2023
1 parent eda331c commit 5fca77e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,13 @@ export const Modal = styled.div`
border-radius: unset;
min-inline-size: unset;
inline-size: 100vw;
block-size: calc(100vh - 120px);
block-size: calc(100vh - 150px);
overflow: scroll;
}
`
const Container = styled.div`
overflow: scroll;
`
const Content = styled.div`
block-size: fit-content;
overflow-x: auto;
Expand Down Expand Up @@ -76,15 +79,15 @@ const WizardComponent = ({
return (
<>
<Modal>
<div>
<Content>
<WizardHeader setSignupStatus={setSignupStatus} />
<Stepper step={step} />
<Content>
{React.Children.map(children, (child, idx) => (
<div key={child.props.name}>{step === idx + 1 && child}</div>
))}
</Content>
</div>
</Content>
<WizardFooter
max_step={children.length}
step={step}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signup-affiliates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const AffiliateSignup = () => {
if (affiliate_api_data) {
Analytics?.trackEvent('ce_partner_account_signup_form', {
action: 'success_popup_opened',
user_choice: JSON.stringify(affiliate_api_error.echo_req),
user_choice: JSON.stringify(affiliate_api_error?.echo_req),
...analyticsData,
})
setSignupStatus('success')
Expand Down

0 comments on commit 5fca77e

Please sign in to comment.