From 3440ae30e5d5ee557b339f8b85ceeb0ed4a7d6a0 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Wed, 15 Jun 2022 16:35:40 -0300 Subject: [PATCH] fix props validation and key props --- src/components/inputUplaod/inputUpload.tsx | 7 ++----- src/pages/administrative/clients.tsx | 10 +++++++++- src/pages/administrative/faq/index.tsx | 3 +-- src/pages/dashboard.tsx | 2 +- src/pages/index.tsx | 2 +- src/pages/verifyEmail.tsx | 2 +- 6 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/inputUplaod/inputUpload.tsx b/src/components/inputUplaod/inputUpload.tsx index 257b836..5eb22ab 100644 --- a/src/components/inputUplaod/inputUpload.tsx +++ b/src/components/inputUplaod/inputUpload.tsx @@ -19,16 +19,13 @@ export default function InputUpload() { console.log(e); } - - - return (
- {imageURLS.map((imageSrc) => ( - not fount + {imageURLS.map((imageSrc, index) => ( + not fount ))}
diff --git a/src/pages/administrative/clients.tsx b/src/pages/administrative/clients.tsx index 7d75f8c..1010c41 100644 --- a/src/pages/administrative/clients.tsx +++ b/src/pages/administrative/clients.tsx @@ -34,7 +34,15 @@ const style = { }; export default function clients() { - const [open, setOpen] = React.useState(false); + const [client, setClient] = useState({ + name: String, + email: String, + password: String, + password_confirmation: String, + client_id: Number + }) + + const [open, setOpen] = useState(false); const [openModalInativar, setOpenModalInativar] = useState(false) const handleOpen = () => setOpen(true); const handleClose = () => setOpen(false); diff --git a/src/pages/administrative/faq/index.tsx b/src/pages/administrative/faq/index.tsx index d1874ad..6f2cae5 100644 --- a/src/pages/administrative/faq/index.tsx +++ b/src/pages/administrative/faq/index.tsx @@ -42,8 +42,7 @@ type FaqInterface = { } - -export default function Sidebar({faqData}) { +export default function Sidebar({faqData}: any) { async function handleRegisterNewFaq({question, answer}: FaqInterface) { await api.post('/faq', { "question": question, diff --git a/src/pages/dashboard.tsx b/src/pages/dashboard.tsx index a5ff7c6..d6f4f37 100644 --- a/src/pages/dashboard.tsx +++ b/src/pages/dashboard.tsx @@ -32,7 +32,7 @@ export default function Dashboard() {
- +
diff --git a/src/pages/index.tsx b/src/pages/index.tsx index dbfbe9a..e51acfe 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -91,7 +91,7 @@ export default function Home() { label="Password" /> - Esqueceu a senha ? + Esqueceu a senha ? handleSignIn()}/> diff --git a/src/pages/verifyEmail.tsx b/src/pages/verifyEmail.tsx index 8894a56..b4612bc 100644 --- a/src/pages/verifyEmail.tsx +++ b/src/pages/verifyEmail.tsx @@ -71,7 +71,7 @@ export default function VerifyEmail() { Ou -

+55(41) 3012-5900
www.energiasmart.com.br

+

+55(41) 3012-5900
www.energiasmart.com.br