Improve csv import (#5753)
This is a small PR to improve the design of our CSV import. I noticed the back button that was implemented in a recent PR #5625 was broken and would need to be fixed (e.g. try to come back to the very first upload step from the sheet selection step). cc @shashankvish0010 if you want to give a stab at fixing your PR that'd be amazing, thanks!
This commit is contained in:
@ -287,11 +287,11 @@ export const MatchColumnsStep = <T extends string>({
|
||||
/>
|
||||
</StyledContent>
|
||||
<StepNavigationButton
|
||||
onBack={onBack}
|
||||
onClick={handleOnContinue}
|
||||
isLoading={isLoading}
|
||||
title="Next"
|
||||
title="Continue"
|
||||
/>
|
||||
<StepNavigationButton onClick={onBack} title="Back" />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@ -57,10 +57,10 @@ export const SelectHeaderStep = ({
|
||||
</Modal.Content>
|
||||
<StepNavigationButton
|
||||
onClick={handleContinue}
|
||||
title="Next"
|
||||
onBack={onBack}
|
||||
title="Continue"
|
||||
isLoading={isLoading}
|
||||
/>
|
||||
<StepNavigationButton onClick={onBack} title="Back" />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@ -55,17 +55,17 @@ export const SelectSheetStep = ({
|
||||
<StyledRadioContainer>
|
||||
<RadioGroup onValueChange={(value) => setValue(value)} value={value}>
|
||||
{sheetNames.map((sheetName) => (
|
||||
<Radio value={sheetName} key={sheetName} />
|
||||
<Radio value={sheetName} key={sheetName} label={sheetName} />
|
||||
))}
|
||||
</RadioGroup>
|
||||
</StyledRadioContainer>
|
||||
</StyledContent>
|
||||
<StepNavigationButton
|
||||
onClick={() => handleOnContinue(value)}
|
||||
onBack={onBack}
|
||||
isLoading={isLoading}
|
||||
title="Next"
|
||||
title="Continue"
|
||||
/>
|
||||
<StepNavigationButton onClick={onBack} title="Back" />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@ -240,8 +240,11 @@ export const ValidationStep = <T extends string>({
|
||||
/>
|
||||
</StyledScrollContainer>
|
||||
</StyledContent>
|
||||
<StepNavigationButton onClick={onContinue} title="Confirm" />
|
||||
<StepNavigationButton onClick={onBack} title="Back" />
|
||||
<StepNavigationButton
|
||||
onClick={onContinue}
|
||||
onBack={onBack}
|
||||
title="Confirm"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user