diff --git a/src/pages/Project/index.tsx b/src/pages/Project/index.tsx index 9c7698d..1de9f37 100644 --- a/src/pages/Project/index.tsx +++ b/src/pages/Project/index.tsx @@ -1,4 +1,5 @@ import { useReactiveVar } from '@apollo/client'; +import { Redirect } from 'react-router'; import { roleVar } from '../../graphql/state'; import { Empty } from '../../assets'; import { Box } from '../../components'; @@ -7,7 +8,7 @@ import { Wrapper } from './styles'; const Project = () => { const role = useReactiveVar(roleVar); - return ( + return role !== 'admin' ? ( { + ) : ( + ); };