Ignore:
Timestamp:
09/21/22 18:47:39 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
34950c6
Parents:
5201690
Message:

Component for editing offers added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-frontend/src/components/SuperAdminComponent/SuperAdminComponent.js

    r5201690 rd66b8eb  
    88import SearchIcon from '@mui/icons-material/Search';
    99import InputBase from '@mui/material/InputBase';
     10import UserContext from '../../context/UserContext';
    1011
    1112
     
    6869
    6970    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      // }
    7080      this.getUsers()
    7181    }
     
    199209}
    200210
     211SuperAdminComponent.contextType = UserContext
     212
    201213export default SuperAdminComponent
Note: See TracChangeset for help on using the changeset viewer.