Merge branch 'report-modal-previous' into 'develop'

do not show 'previous' button in last step

See merge request soapbox-pub/soapbox!1964
This commit is contained in:
marcin mikołajczak 2022-11-28 16:08:36 +00:00
commit c87826c419

View file

@ -204,7 +204,7 @@ const ReportModal = ({ onClose }: IReportModal) => {
title={<FormattedMessage id='report.target' defaultMessage='Reporting {target}' values={{ target: <strong>@{account.acct}</strong> }} />}
onClose={onClose}
cancelText={cancelText}
cancelAction={cancelAction}
cancelAction={currentStep === Steps.THREE ? undefined : cancelAction}
confirmationAction={handleNextStep}
confirmationText={confirmationText}
confirmationDisabled={isConfirmationButtonDisabled}