From 3eeb0045633433657f91594736d31036f0b85ceb Mon Sep 17 00:00:00 2001 From: Omotayo Obafemi Date: Mon, 8 Jan 2024 03:46:48 +0000 Subject: [PATCH 1/3] Fixed Toast Error on Edit Drawer Component --- apps/frontend/src/components/editor-drawer.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/frontend/src/components/editor-drawer.jsx b/apps/frontend/src/components/editor-drawer.jsx index 8a462ff2e..7ea363084 100644 --- a/apps/frontend/src/components/editor-drawer.jsx +++ b/apps/frontend/src/components/editor-drawer.jsx @@ -64,6 +64,8 @@ const EditorDrawer = ({ const [authorName, setAuthorName] = useState(""); + const toast = useToast(); + useEffect(() => { if (post) { const { tags } = post.attributes; From 38fe8002e6e8c448314cd0acc886335132fb0aaa Mon Sep 17 00:00:00 2001 From: Omotayo Obafemi Date: Mon, 8 Jan 2024 10:04:08 +0000 Subject: [PATCH 2/3] Fix pipeline build --- apps/frontend/src/components/editor-drawer.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/frontend/src/components/editor-drawer.jsx b/apps/frontend/src/components/editor-drawer.jsx index 7ea363084..e203a5ae5 100644 --- a/apps/frontend/src/components/editor-drawer.jsx +++ b/apps/frontend/src/components/editor-drawer.jsx @@ -30,6 +30,7 @@ import { DrawerHeader, DrawerOverlay, DrawerContent, + useToast } from "@chakra-ui/react"; import { Field, Form, Formik } from "formik"; import slugify from "slugify"; From e98bf4dd6aedf394e0aeffb2700196ba7db568f5 Mon Sep 17 00:00:00 2001 From: Omotayo Obafemi Date: Mon, 8 Jan 2024 10:22:27 +0000 Subject: [PATCH 3/3] Fixed lint issue --- apps/frontend/src/components/editor-drawer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/components/editor-drawer.jsx b/apps/frontend/src/components/editor-drawer.jsx index e203a5ae5..2f22d2957 100644 --- a/apps/frontend/src/components/editor-drawer.jsx +++ b/apps/frontend/src/components/editor-drawer.jsx @@ -30,7 +30,7 @@ import { DrawerHeader, DrawerOverlay, DrawerContent, - useToast + useToast, } from "@chakra-ui/react"; import { Field, Form, Formik } from "formik"; import slugify from "slugify";