diff --git a/.changeset/ten-teachers-rescue.md b/.changeset/ten-teachers-rescue.md new file mode 100644 index 0000000..0121550 --- /dev/null +++ b/.changeset/ten-teachers-rescue.md @@ -0,0 +1,5 @@ +--- +"@openfun/cunningham-react": minor +--- + +Add Modal component diff --git a/apps/demo/src/Create.tsx b/apps/demo/src/Create.tsx index 384df61..8a17753 100644 --- a/apps/demo/src/Create.tsx +++ b/apps/demo/src/Create.tsx @@ -1,7 +1,6 @@ import React from "react"; import { Alert, - AlertType, Button, Checkbox, DatePicker, @@ -13,8 +12,8 @@ import { Select, Switch, TextArea, - ToastType, useToastProvider, + VariantType, } from "@openfun/cunningham-react"; import { faker } from "@faker-js/faker"; import { Character, database, randomDates } from "./Character"; @@ -35,7 +34,7 @@ export const Create = ({ changePage }: PageProps) => { database.unshift(character); changePage(Page.HOME); - toast("Character created successfully", ToastType.SUCCESS); + toast("Character created successfully", VariantType.SUCCESS); }; return ( @@ -43,7 +42,7 @@ export const Create = ({ changePage }: PageProps) => {

Add a character

General Information

- + You are about to add a new character to the collection {

Bio

- + Please be exhaustive, every detail counts!