| @@ -68,16 +68,16 @@ const ProfileTab = () => { | |||||
| if(isObjEmpty(userData)){ | if(isObjEmpty(userData)){ | ||||
| navigate('/login'); | navigate('/login'); | ||||
| } | } | ||||
| axios.get(`${apiPath}${GET_USER_REMINDER_FLAG}/${userData.id}`) | |||||
| .then((response) => { | |||||
| if (response.status === 200) { | |||||
| setIsReceiveNotification(response.data.isReminder); | |||||
| } | |||||
| }) | |||||
| .catch(error => { | |||||
| console.log(error); | |||||
| return false; | |||||
| }); | |||||
| // axios.get(`${apiPath}${GET_USER_REMINDER_FLAG}/${userData.id}`) | |||||
| // .then((response) => { | |||||
| // if (response.status === 200) { | |||||
| // setIsReceiveNotification(response.data.isReminder); | |||||
| // } | |||||
| // }) | |||||
| // .catch(error => { | |||||
| // console.log(error); | |||||
| // return false; | |||||
| // }); | |||||
| }, []); | }, []); | ||||
| const handleSwitchToggle = () => { | const handleSwitchToggle = () => { | ||||
| @@ -115,7 +115,7 @@ const ProfileTab = () => { | |||||
| <ListItemText primary="Change Password" /> | <ListItemText primary="Change Password" /> | ||||
| </ListItemButton> | </ListItemButton> | ||||
| } | } | ||||
| <ListItem selected={selectedIndex === 1} onClick={(event) => handleListItemClick(event, 1)}> | |||||
| {/* <ListItem selected={selectedIndex === 1} onClick={(event) => handleListItemClick(event, 1)}> | |||||
| <ListItemIcon> | <ListItemIcon> | ||||
| <SmsOutlinedIcon /> | <SmsOutlinedIcon /> | ||||
| </ListItemIcon> | </ListItemIcon> | ||||
| @@ -123,7 +123,7 @@ const ProfileTab = () => { | |||||
| <ListItemSecondaryAction> | <ListItemSecondaryAction> | ||||
| <Switch checked={isReceiveNotification} onChange={handleSwitchToggle} /> | <Switch checked={isReceiveNotification} onChange={handleSwitchToggle} /> | ||||
| </ListItemSecondaryAction> | </ListItemSecondaryAction> | ||||
| </ListItem> | |||||
| </ListItem> */} | |||||
| </List> | </List> | ||||
| <ThemeProvider theme={LIONER_FORM_THEME}> | <ThemeProvider theme={LIONER_FORM_THEME}> | ||||
| <ChangePasswordWindow | <ChangePasswordWindow | ||||