From fc65b4a5f4d03a89fc427cc231a87d94707d5447 Mon Sep 17 00:00:00 2001 From: Dang Nguyen Nguyen Date: Wed, 6 Sep 2023 11:59:31 -0700 Subject: [PATCH] fixed eslint --- src/components/CreateModal/CreateModal.jsx | 28 ++++++++++------------ 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/components/CreateModal/CreateModal.jsx b/src/components/CreateModal/CreateModal.jsx index 08f047a..edab641 100644 --- a/src/components/CreateModal/CreateModal.jsx +++ b/src/components/CreateModal/CreateModal.jsx @@ -144,21 +144,19 @@ export default function CreateModal({ fontWeight="bold" borderRadius={20} onClick={() => { - { - setNewAddedItem({ - image: "", - type: "", - islost: true, - name: "", - description: "", - itemDate: "", - }); - setUploadImg(""); - setActiveStep(0); - setIsCreate(true); - setIsEdit(false); - onClose(); - } + setNewAddedItem({ + image: "", + type: "", + islost: true, + name: "", + description: "", + itemDate: "", + }); + setUploadImg(""); + setActiveStep(0); + setIsCreate(true); + setIsEdit(false); + onClose(); }} > Cancel