fix props validation and key props
This commit is contained in:
parent
e0d0ddfbbc
commit
3440ae30e5
@ -19,16 +19,13 @@ export default function InputUpload() {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<InputUploadView>
|
||||
|
||||
<div className='imgContainer'>
|
||||
<article>
|
||||
{imageURLS.map((imageSrc) => (
|
||||
<img className="image" src={imageSrc} alt="not fount" />
|
||||
{imageURLS.map((imageSrc, index) => (
|
||||
<img key={index} className="image" src={imageSrc} alt="not fount" />
|
||||
))}
|
||||
|
||||
</article>
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -32,7 +32,7 @@ export default function Dashboard() {
|
||||
<Header name='' />
|
||||
|
||||
<PageTitle title='Visão Geral' subtitle='Bem Vindo a Smart Energia' />
|
||||
<Link href={'pld'}>
|
||||
<Link href='pld'>
|
||||
<section className="cardsSection" >
|
||||
<MapCard title='R$/MWh' subtitle='abril / 22' date='até 10/10' statistic='' imgSource='/moneyIcon.svg' />
|
||||
<MapCard title='SE/CO' subtitle='Sudeste' statistic='R$ 273,54' imgSource='/mapSample.svg' />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user