Pārlūkot izejas kodu

update profile tab

master
kelvinsuen pirms 3 nedēļām
vecāks
revīzija
2a08338e8f
1 mainītis faili ar 12 papildinājumiem un 12 dzēšanām
  1. +12
    -12
      src/layout/MainLayout/Header/HeaderContent/Profile/ProfileTab.js

+ 12
- 12
src/layout/MainLayout/Header/HeaderContent/Profile/ProfileTab.js Parādīt failu

@@ -68,16 +68,16 @@ const ProfileTab = () => {
if(isObjEmpty(userData)){
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 = () => {
@@ -115,7 +115,7 @@ const ProfileTab = () => {
<ListItemText primary="Change Password" />
</ListItemButton>
}
<ListItem selected={selectedIndex === 1} onClick={(event) => handleListItemClick(event, 1)}>
{/* <ListItem selected={selectedIndex === 1} onClick={(event) => handleListItemClick(event, 1)}>
<ListItemIcon>
<SmsOutlinedIcon />
</ListItemIcon>
@@ -123,7 +123,7 @@ const ProfileTab = () => {
<ListItemSecondaryAction>
<Switch checked={isReceiveNotification} onChange={handleSwitchToggle} />
</ListItemSecondaryAction>
</ListItem>
</ListItem> */}
</List>
<ThemeProvider theme={LIONER_FORM_THEME}>
<ChangePasswordWindow


Notiek ielāde…
Atcelt
Saglabāt