Merge branch 'administativePages' into 'dev'

fix props validation and key props

See merge request kluppsoftware/smart-energia-web!60
This commit is contained in:
José Corte 2022-06-15 19:36:26 +00:00
commit 7afe4a817b
6 changed files with 15 additions and 11 deletions

View File

@ -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>

View File

@ -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);

View File

@ -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,

View File

@ -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' />

View File

@ -91,7 +91,7 @@ export default function Home() {
label="Password"
/>
</FormControl>
<Link href='verifyEmail' >Esqueceu a senha ?</Link>
<Link href='verifyEmail'>Esqueceu a senha ?</Link>
<LoginButton title='ENTRAR' onClick={() => handleSignIn()}/>

View File

@ -71,7 +71,7 @@ export default function VerifyEmail() {
<legend className="text">Ou</legend>
</fieldset>
<p><a href='tel:+55(41) 3012-5900' >+55(41) 3012-5900</a><br/><a href='https://www.energiasmart.com.br' >www.energiasmart.com.br</a></p>
<p><a href='tel:+55(41)3012-5900' >+55(41) 3012-5900</a><br/><a href='https://www.energiasmart.com.br' >www.energiasmart.com.br</a></p>
</VerifyEmailContainer>
</VerifyEmailView>