OnboardingModalFlow: improve layout, improve transitions
This commit is contained in:
parent
867f37b030
commit
78b653371c
|
@ -78,9 +78,8 @@ const OnboardingFlowModal: React.FC<IOnboardingFlowModal> = ({ onClose }) => {
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack justifyContent='center' alignItems='center' className='relative w-full'>
|
<Stack space={5} justifyContent='center' alignItems='center' className='relative w-full'>
|
||||||
<Modal width='2xl' onClose={handleComplete} theme='transparent'>
|
<Modal width='2xl' onClose={handleComplete}>
|
||||||
<Stack space={4}>
|
|
||||||
<ReactSwipeableViews animateHeight index={currentStep} onChangeIndex={handleSwipe}>
|
<ReactSwipeableViews animateHeight index={currentStep} onChangeIndex={handleSwipe}>
|
||||||
{steps.map((step, i) => (
|
{steps.map((step, i) => (
|
||||||
<div key={i} className='w-full'>
|
<div key={i} className='w-full'>
|
||||||
|
@ -96,9 +95,9 @@ const OnboardingFlowModal: React.FC<IOnboardingFlowModal> = ({ onClose }) => {
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</ReactSwipeableViews>
|
</ReactSwipeableViews>
|
||||||
|
</Modal>
|
||||||
|
|
||||||
<div className='relative flex w-full justify-center'>
|
<HStack space={3} alignItems='center' justifyContent='center' className='pointer-events-auto'>
|
||||||
<HStack space={3} alignItems='center' justifyContent='center' className='absolute h-10'>
|
|
||||||
{steps.map((_, i) => (
|
{steps.map((_, i) => (
|
||||||
<button
|
<button
|
||||||
key={i}
|
key={i}
|
||||||
|
@ -112,9 +111,6 @@ const OnboardingFlowModal: React.FC<IOnboardingFlowModal> = ({ onClose }) => {
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</HStack>
|
</HStack>
|
||||||
</div>
|
|
||||||
</Stack>
|
|
||||||
</Modal>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue