Changeset d66b8eb for phonelux-frontend/src/components/SuperAdminComponent
- Timestamp:
- 09/21/22 18:47:39 (2 years ago)
- Branches:
- master
- Children:
- 34950c6
- Parents:
- 5201690
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
phonelux-frontend/src/components/SuperAdminComponent/SuperAdminComponent.js
r5201690 rd66b8eb 8 8 import SearchIcon from '@mui/icons-material/Search'; 9 9 import InputBase from '@mui/material/InputBase'; 10 import UserContext from '../../context/UserContext'; 10 11 11 12 … … 68 69 69 70 componentDidMount(){ 71 // if(!localStorage.getItem('token')) 72 // { 73 // window.location.href = "/" 74 // } 75 76 // if(this.context.role != 'SUPERADMIN') 77 // { 78 // window.location.href = "/" 79 // } 70 80 this.getUsers() 71 81 } … … 199 209 } 200 210 211 SuperAdminComponent.contextType = UserContext 212 201 213 export default SuperAdminComponent
Note:
See TracChangeset
for help on using the changeset viewer.