diff --git a/apps/demo/src/Home.tsx b/apps/demo/src/Home.tsx index 83a51a2..3fedc3b 100644 --- a/apps/demo/src/Home.tsx +++ b/apps/demo/src/Home.tsx @@ -6,13 +6,14 @@ import { usePagination, useToastProvider, VariantType, + useModals, } from "@openfun/cunningham-react"; - import { PageProps } from "./App"; import { database } from "./Character"; export const Home = ({ modal }: { modal: PageProps }) => { const { toast } = useToastProvider(); + const modals = useModals(); const [rowSelection, setRowSelection] = useState({}); const [isLoading, setIsLoading] = useState(true); const pagination = usePagination({ defaultPage: 1 }); @@ -127,7 +128,11 @@ export const Home = ({ modal }: { modal: PageProps }) => {