Merge branch 'administativePages' into 'dev'
fix props validation and key props See merge request kluppsoftware/smart-energia-web!60
This commit is contained in:
commit
7afe4a817b
@ -19,16 +19,13 @@ export default function InputUpload() {
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<InputUploadView>
|
<InputUploadView>
|
||||||
|
|
||||||
<div className='imgContainer'>
|
<div className='imgContainer'>
|
||||||
<article>
|
<article>
|
||||||
{imageURLS.map((imageSrc) => (
|
{imageURLS.map((imageSrc, index) => (
|
||||||
<img className="image" src={imageSrc} alt="not fount" />
|
<img key={index} className="image" src={imageSrc} alt="not fount" />
|
||||||
))}
|
))}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@ -34,7 +34,15 @@ const style = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default function clients() {
|
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 [openModalInativar, setOpenModalInativar] = useState(false)
|
||||||
const handleOpen = () => setOpen(true);
|
const handleOpen = () => setOpen(true);
|
||||||
const handleClose = () => setOpen(false);
|
const handleClose = () => setOpen(false);
|
||||||
|
|||||||
@ -42,8 +42,7 @@ type FaqInterface = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default function Sidebar({faqData}: any) {
|
||||||
export default function Sidebar({faqData}) {
|
|
||||||
async function handleRegisterNewFaq({question, answer}: FaqInterface) {
|
async function handleRegisterNewFaq({question, answer}: FaqInterface) {
|
||||||
await api.post('/faq', {
|
await api.post('/faq', {
|
||||||
"question": question,
|
"question": question,
|
||||||
|
|||||||
@ -32,7 +32,7 @@ export default function Dashboard() {
|
|||||||
<Header name='' />
|
<Header name='' />
|
||||||
|
|
||||||
<PageTitle title='Visão Geral' subtitle='Bem Vindo a Smart Energia' />
|
<PageTitle title='Visão Geral' subtitle='Bem Vindo a Smart Energia' />
|
||||||
<Link href={'pld'}>
|
<Link href='pld'>
|
||||||
<section className="cardsSection" >
|
<section className="cardsSection" >
|
||||||
<MapCard title='R$/MWh' subtitle='abril / 22' date='até 10/10' statistic='' imgSource='/moneyIcon.svg' />
|
<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' />
|
<MapCard title='SE/CO' subtitle='Sudeste' statistic='R$ 273,54' imgSource='/mapSample.svg' />
|
||||||
|
|||||||
@ -91,7 +91,7 @@ export default function Home() {
|
|||||||
label="Password"
|
label="Password"
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<Link href='verifyEmail' >Esqueceu a senha ?</Link>
|
<Link href='verifyEmail'>Esqueceu a senha ?</Link>
|
||||||
|
|
||||||
<LoginButton title='ENTRAR' onClick={() => handleSignIn()}/>
|
<LoginButton title='ENTRAR' onClick={() => handleSignIn()}/>
|
||||||
|
|
||||||
|
|||||||
@ -71,7 +71,7 @@ export default function VerifyEmail() {
|
|||||||
<legend className="text">Ou</legend>
|
<legend className="text">Ou</legend>
|
||||||
</fieldset>
|
</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>
|
</VerifyEmailContainer>
|
||||||
</VerifyEmailView>
|
</VerifyEmailView>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user