Unverified Commit b91dd9e5 authored by ksmirnov's avatar ksmirnov Committed by GitHub

Merge pull request #14 from AyaDigital/hotfix/DMVP-1088

DMVP-1088 - Не работают флаги active verified в административной панели
parents 89bb7747 8f74cf33
......@@ -99,11 +99,11 @@ const BaseData = ({
}
const onChangeActive = ({ target: {value, checked} }) => {
setIsActive(!checked)
setIsActive(checked)
}
const onChangeVerified = ({ target: {value, checked} }) => {
setIsVerified(!checked)
setIsVerified(checked)
}
const handleUpdatePassword = () => {
......
......@@ -50,34 +50,19 @@ const SpecialityData = ({
const { isLoading: isAvatarLoading, isSuccess: isAvatarLoaded, data: avatarData = {} } = useGetProfileAvatarByUuidQuery(id);
const [ updateAvatar, { isLoading: isAvatarUpdating }] = useUploadProfileAvatarByUuidMutation();
const [ updateAbout, { isLoading: isAboutUpdating }] = useUpdateProfileAboutInfoMutation();
const [ updateEducation, { isLoading: isEducationLoading }] = useUpdateProfileEducationMutation();
const [ updateAbout ] = useUpdateProfileAboutInfoMutation();
const [ updateEducation ] = useUpdateProfileEducationMutation();
const [ destroyAvatar, { isLoading: isAvatarDestroying } ] = useDestroyProfileAvatarByUuidMutation();
const { data: aboutInfo } = useGetProfileAboutInfoQuery(id);
const { data: educationData } = useGetProfileEducationQuery(id);
const [refreshSpecialities, { isLoading: isRefresSpecialitieshLoading, isSuccess: isSpecialitiesRefreshed }]
= useRefreshUserSpecialitiesMutation();
const [refreshLanguages, { isLoading: isRefreshLanguageLoading, isSuccess: isLanguagesRefreshed }]
= useRefreshUserLanguagesMutation();
const [refreshDegrees, { isLoading: isRefreshDegreesLoading, isSuccess: isDegreesRefreshed }]
= useRefreshUserDegreesMutation();
const [refreshSpecialities] = useRefreshUserSpecialitiesMutation();
const [refreshLanguages] = useRefreshUserLanguagesMutation();
const [refreshDegrees] = useRefreshUserDegreesMutation();
const [ deleteInsurance, { isSuccess: isInsuranceRemoved }] = useDeleteUserInsurancesMutation();
const [ addInsurance, { isSuccess: isInsuranceAdded, isLoading: isRefreshInsuranceLoading }] = useAddUserInsurancesMutation();
useEffect(() => {
if (
isSpecialitiesRefreshed ||
isLanguagesRefreshed ||
isDegreesRefreshed ||
isInsuranceRemoved ||
isInsuranceAdded
) {
// updateProfile();
}
}, [isSpecialitiesRefreshed, isLanguagesRefreshed, isDegreesRefreshed, isInsuranceAdded, isInsuranceRemoved])
const [ deleteInsurance] = useDeleteUserInsurancesMutation();
const [ addInsurance, { isSuccess: isInsuranceAdded }] = useAddUserInsurancesMutation();
useEffect(() => {
// setIsInsuransesListOpen(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment