Import - Increase record import limit (#12627)
<img width="700" alt="Screenshot 2025-06-16 at 15 05 09" src="https://github.com/user-attachments/assets/a09c3fae-c0ae-4a63-8bda-9d29c97a6a66" /> closes https://github.com/twentyhq/twenty/issues/11980
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import styled from '@emotion/styled';
|
||||
|
||||
import { Modal } from '@/ui/layout/modal/components/Modal';
|
||||
import { t } from '@lingui/core/macro';
|
||||
import { CircularProgressBar } from 'twenty-ui/feedback';
|
||||
import { MainButton } from 'twenty-ui/input';
|
||||
import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull';
|
||||
@ -15,37 +16,41 @@ const StyledFooter = styled(Modal.Footer)`
|
||||
`;
|
||||
|
||||
type StepNavigationButtonProps = {
|
||||
onClick: () => void;
|
||||
title: string;
|
||||
onContinue?: () => void;
|
||||
continueTitle?: string;
|
||||
isContinueDisabled?: boolean;
|
||||
isLoading?: boolean;
|
||||
onBack?: () => void;
|
||||
isNextDisabled?: boolean;
|
||||
backTitle?: string;
|
||||
};
|
||||
|
||||
export const StepNavigationButton = ({
|
||||
onClick,
|
||||
title,
|
||||
onContinue,
|
||||
continueTitle = t`Continue`,
|
||||
isLoading,
|
||||
onBack,
|
||||
isNextDisabled = false,
|
||||
backTitle = t`Back`,
|
||||
isContinueDisabled = false,
|
||||
}: StepNavigationButtonProps) => {
|
||||
return (
|
||||
<StyledFooter>
|
||||
{!isUndefinedOrNull(onBack) && (
|
||||
<MainButton
|
||||
Icon={isLoading ? CircularProgressBar : undefined}
|
||||
title="Back"
|
||||
title={backTitle}
|
||||
onClick={!isLoading ? onBack : undefined}
|
||||
variant="secondary"
|
||||
/>
|
||||
)}
|
||||
<MainButton
|
||||
Icon={isLoading ? CircularProgressBar : undefined}
|
||||
title={title}
|
||||
onClick={!isLoading ? onClick : undefined}
|
||||
variant="primary"
|
||||
disabled={isNextDisabled}
|
||||
/>
|
||||
{!isUndefinedOrNull(onContinue) && (
|
||||
<MainButton
|
||||
Icon={isLoading ? CircularProgressBar : undefined}
|
||||
title={continueTitle}
|
||||
onClick={!isLoading ? onContinue : undefined}
|
||||
variant="primary"
|
||||
disabled={isContinueDisabled}
|
||||
/>
|
||||
)}
|
||||
</StyledFooter>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user