dasdasdيشيسي
This commit is contained in:
@@ -31,7 +31,7 @@ export default function InnerRegistrationCenterForm(props: InnerFormProps) {
|
|||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
|
const isMobile = useMediaQuery(theme.breakpoints.down("md"));
|
||||||
const handleBack = () => {
|
const handleBack = () => {
|
||||||
props.update({ registrationCenter: props.values.selectedCenter});
|
props.update({ registrationCenter: props.values});
|
||||||
props.setStep((prev) => Math.max(1, prev - 1));
|
props.setStep((prev) => Math.max(1, prev - 1));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ const EMPTY_VALUES: RegistrationCenterFormValues = {
|
|||||||
|
|
||||||
const RegistrationCenterFormValidationSchema = yup.object({
|
const RegistrationCenterFormValidationSchema = yup.object({
|
||||||
selectedCenter: yup
|
selectedCenter: yup
|
||||||
.mixed<CenterItem | null>()
|
.mixed<CenterItem>()
|
||||||
.nullable()
|
.nullable()
|
||||||
.required("لطفاً یک مرکز را انتخاب کنید"),
|
.required("لطفاً یک مرکز را انتخاب کنید"),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user