박권수

style. code style

...@@ -86,12 +86,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => { ...@@ -86,12 +86,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => {
86 await managerApi.acceptDoctorRegReq(token, { 86 await managerApi.acceptDoctorRegReq(token, {
87 doctorId : doctorDetail.doctorId, 87 doctorId : doctorDetail.doctorId,
88 validateDoctorLicense, 88 validateDoctorLicense,
89 - }) 89 + }).then((res : any) => {
90 - .then((res : any) => { 90 + if(res.statusText === 'OK') {
91 - if(res.statusText === 'OK') { 91 + Alert.onSuccess('회원 등록이 완료되었습니다.', fetchData);
92 - Alert.onSuccess('회원 등록이 완료되었습니다.', fetchData); 92 + }
93 - } 93 + });
94 - })
95 } catch(e : any) { 94 } catch(e : any) {
96 Alert.onError(e.response.data.error, () => setModalUp(false)); 95 Alert.onError(e.response.data.error, () => setModalUp(false));
97 } 96 }
...@@ -106,12 +105,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => { ...@@ -106,12 +105,11 @@ const ManagerMenuContainer = (props : ManagerMenuProps) => {
106 try { 105 try {
107 await managerApi.rejectDoctorRegReq(token, { 106 await managerApi.rejectDoctorRegReq(token, {
108 doctorId : doctorDetail.doctorId, 107 doctorId : doctorDetail.doctorId,
109 - }) 108 + }).then((res : any) => {
110 - .then((res : any) => { 109 + if(res.statusText === 'OK') {
111 - if(res.statusText === 'OK') { 110 + Alert.onSuccess('회원 등록이 취소되었습니다.', fetchData);
112 - Alert.onSuccess('회원 등록이 취소되었습니다.', fetchData); 111 + }
113 - } 112 + });
114 - })
115 } catch(e : any) { 113 } catch(e : any) {
116 Alert.onError(e.response.data.error, () => setModalUp(false)); 114 Alert.onError(e.response.data.error, () => setModalUp(false));
117 } 115 }
......