Projekt

Obecné

Profil

Stáhnout (574 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { Button } from "@mui/material"
2
import { Fragment, useEffect } from "react"
3
import AddIcon from '@mui/icons-material/Add'
4
import { RootState } from "../redux/store"
5
import { useSelector } from "react-redux"
6

    
7
const AddNewLocationDialog = () => {
8

    
9
    const roles = useSelector((state: RootState) => state.user.roles)
10

    
11
    // useEffect(() => {
12
    //     if (!roles.include())
13
    // })
14

    
15
    return (
16
        <Fragment>
17
            <Button startIcon={<AddIcon />} variant="outlined">Add Location</Button>
18
        </Fragment>
19
    )
20
}
21

    
22
export default AddNewLocationDialog
(1-1/8)