Commit e2f3baa7 authored by Tom Darneix's avatar Tom Darneix
Browse files

Fix scroll (#11079)

parent 52915351
import { lazy, useState, Suspense } from 'react';
import { equals, isNil, path } from 'ramda';
import { Responsive } from '@visx/visx';
import makeStyles from '@mui/styles/makeStyles';
......@@ -47,7 +48,7 @@ const steps = [
];
const useStyles = makeStyles((theme) => ({
formContainer: {
wrapper: {
margin: theme.spacing(2, 4),
},
}));
......@@ -82,13 +83,19 @@ const PollerWizard = (): JSX.Element | null => {
return (
<BaseWizard>
<ProgressBar activeStep={currentStep} steps={steps} />
<div className={classes.formContainer}>
<div className={classes.wrapper}>
<Suspense fallback={<LoadingSkeleton />}>
<Form
changeServerType={changeServerType}
goToNextStep={goToNextStep}
goToPreviousStep={goToPreviousStep}
/>
<Responsive.ParentSize>
{({ height }): JSX.Element => (
<div style={{ height }}>
<Form
changeServerType={changeServerType}
goToNextStep={goToNextStep}
goToPreviousStep={goToPreviousStep}
/>
</div>
)}
</Responsive.ParentSize>
</Suspense>
</div>
</BaseWizard>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment