make SMS available for all users again (#5656)
Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Omar López <[email protected]>
This commit is contained in:
4 files changed
+10
-40
No files matched your search
@@ -48,12 +48,11 @@ type WorkflowStepProps = {
|
||||
form: UseFormReturn<FormValues>;
|
||||
reload?: boolean;
|
||||
setReload?: Dispatch<SetStateAction<boolean>>;
|
||||
isFreeUser: boolean;
|
||||
};
|
||||
|
||||
export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
const { t, i18n } = useLocale();
|
||||
const { step, form, reload, setReload, isFreeUser } = props;
|
||||
const { step, form, reload, setReload } = props;
|
||||
const [isAdditionalInputsDialogOpen, setIsAdditionalInputsDialogOpen] = useState(false);
|
||||
const [confirmationDialogOpen, setConfirmationDialogOpen] = useState(false);
|
||||
|
||||
@@ -324,15 +323,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
|
||||
}
|
||||
}}
|
||||
defaultValue={selectedAction}
|
||||
options={
|
||||
isFreeUser
|
||||
? actionOptions.filter(
|
||||
(actionOption) =>
|
||||
actionOption.value !== WorkflowActions.SMS_ATTENDEE &&
|
||||
actionOption.value !== WorkflowActions.SMS_NUMBER
|
||||
)
|
||||
: actionOptions
|
||||
}
|
||||
options={actionOptions}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user