chore: update wording

This commit is contained in:
Lucas Smith
2024-05-24 04:02:58 +00:00
parent 870de02efa
commit 04ebb26a0b
2 changed files with 5 additions and 4 deletions

View File

@ -246,7 +246,7 @@ export const SinglePlayerClient = () => {
recipients={uploadedFile ? [placeholderRecipient] : []}
fields={fields}
onSubmit={onFieldsSubmit}
isSinglePlayerMode={true}
canGoBack={true}
/>
</fieldset>

View File

@ -53,7 +53,7 @@ export type AddFieldsFormProps = {
recipients: Recipient[];
fields: Field[];
onSubmit: (_data: TAddFieldsFormSchema) => void;
isSinglePlayerMode?: boolean;
canGoBack?: boolean;
};
export const AddFieldsFormPartial = ({
@ -62,12 +62,13 @@ export const AddFieldsFormPartial = ({
recipients,
fields,
onSubmit,
isSinglePlayerMode = false,
canGoBack = false,
}: AddFieldsFormProps) => {
const { isWithinPageBounds, getFieldPosition, getPage } = useDocumentElement();
const { currentStep, totalSteps, previousStep } = useStep();
const canRenderBackButtonAsRemove =
currentStep === 1 && typeof documentFlow.onBackStep === 'function' && isSinglePlayerMode;
currentStep === 1 && typeof documentFlow.onBackStep === 'function' && canGoBack;
const {
control,
handleSubmit,