Some more changes I guess
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import useEntities from "@/hooks/useEntities";
|
||||||
import { EntityWithRoles } from "@/interfaces/entity";
|
import { EntityWithRoles } from "@/interfaces/entity";
|
||||||
import {User} from "@/interfaces/user";
|
import {User} from "@/interfaces/user";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
@@ -20,7 +21,6 @@ interface Props {
|
|||||||
|
|
||||||
export default function Layout({
|
export default function Layout({
|
||||||
user,
|
user,
|
||||||
entities = [],
|
|
||||||
children,
|
children,
|
||||||
className,
|
className,
|
||||||
bgColor="bg-white",
|
bgColor="bg-white",
|
||||||
@@ -30,6 +30,7 @@ export default function Layout({
|
|||||||
onFocusLayerMouseEnter
|
onFocusLayerMouseEnter
|
||||||
}: Props) {
|
}: Props) {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
const {entities} = useEntities()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className={clsx("w-full min-h-full h-screen flex flex-col bg-mti-gray-smoke relative")}>
|
<main className={clsx("w-full min-h-full h-screen flex flex-col bg-mti-gray-smoke relative")}>
|
||||||
|
|||||||
Reference in New Issue
Block a user