fixed a bunch of group/team permission stuff on the devices page
This commit is contained in:
parent
988ab1c683
commit
afdbe3426e
7 changed files with 59 additions and 33 deletions
|
|
@ -11,6 +11,7 @@ import { Team } from '../models/team'
|
|||
import { makeStyles } from '@mui/styles'
|
||||
import { CssBaseline, Theme } from '@mui/material'
|
||||
import { AppThemeProvider } from 'theme/AppThemeProvider'
|
||||
import HTTPProvider from 'providers/http'
|
||||
// import FirmwareLoader from './FirmwareLoader'
|
||||
|
||||
const reducer = (state: GlobalState, action: GlobalStateAction): GlobalState => {
|
||||
|
|
@ -48,10 +49,15 @@ const globalDefault = {
|
|||
showErrors: false,
|
||||
userTeamPermissions: [],
|
||||
backgroundTasksComplete: false,
|
||||
firmware: new Map()
|
||||
firmware: new Map(),
|
||||
}
|
||||
|
||||
export default function UserWrapper() {
|
||||
interface Props {
|
||||
token: string;
|
||||
}
|
||||
|
||||
export default function UserWrapper(props: Props) {
|
||||
const { token } = props;
|
||||
const [loading, setLoading] = useState(false)
|
||||
const userAPI = useUserAPI();
|
||||
const classes = useStyles();
|
||||
|
|
@ -98,7 +104,9 @@ export default function UserWrapper() {
|
|||
<AppThemeProvider >
|
||||
<CssBaseline/>
|
||||
<main className={classes.appContent}>
|
||||
<NavigationContainer />
|
||||
<HTTPProvider token={token}>
|
||||
<NavigationContainer />
|
||||
</HTTPProvider>
|
||||
</main>
|
||||
</AppThemeProvider>
|
||||
</StateProvider>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue