Import roles from auth context in Layout
cgen-f68fb9181f46415bad588c963da96446
This commit is contained in:
parent
9c982aec7c
commit
f3581dc8d0
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ interface LayoutProps {
|
|||
|
||||
export default function Layout({ children }: LayoutProps) {
|
||||
const location = useLocation();
|
||||
const { user, profile, signOut, loading } = useAuth();
|
||||
const { user, profile, roles, signOut, loading } = useAuth();
|
||||
|
||||
const navigation = [
|
||||
{ name: "Home", href: "/" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue