Aqui estão algumas das perguntas que mais recebemos!
*/}
+
+
+
{
faqData.map((value, index ) => {
diff --git a/src/pages/grossSavings/index.tsx b/src/pages/grossSavings/index.tsx
index aa0df7a..820d20e 100644
--- a/src/pages/grossSavings/index.tsx
+++ b/src/pages/grossSavings/index.tsx
@@ -18,8 +18,9 @@ export default function GrossSavings({graphData, years, userName}: any) {
Smart Energia - Economia Acumulada
-
-
+
+
+ {
graphData = res.data.data
// console.log(graphData[0])
}).catch(res => {
- console.log(res)
+ // console.log(res)
})
const years = graphData.map((value) => value.ano)
- console.log(years)
if (!token) {
return {
redirect: {
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index d25b0a3..1ade32b 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -8,7 +8,7 @@ import Head from 'next/head';
import Image from 'next/image';
import Link from 'next/link';
import { useRouter } from 'next/router'
-import React, { useContext, useState, useEffect,useCallback } from 'react'
+import React, { useContext, useState, useEffect,useCallback, useRef } from 'react'
import { AiOutlineEye, AiOutlineEyeInvisible } from 'react-icons/ai';
import RenderIf from '../utils/renderIf';
import Snackbar from '@mui/material/Snackbar';
@@ -30,10 +30,11 @@ const Alert = React.forwardRef(function Alert(
export default function Home() {
const [openSnackSuccess, setOpenSnackSuccess] = useState(false);
const [openSnackError, setOpenSnackError] = useState(false);
- const [openSnackSuccessDelete, setOpenSnackSuccessDelete] = useState(false);
- const [openSnackErrorDelete, setOpenSnackErrorDelete] = useState(false);
+
+ const field = useRef(null)
const [state, setstate] = useState(false);
+ const [focus, setFocus] = useState('email');
const [values, setValues] = useState({
password: null,
@@ -75,7 +76,7 @@ export default function Home() {
}
})
} catch (exception){
- console.log(exception)
+ // console.log(exception)
}
}
}
@@ -123,17 +124,19 @@ export default function Home() {
e.key==='Enter'? console.log(field.current.children[0].focus()) : null}
onChange={value => {
setEmail(value.target.value.toLowerCase())
}}/>
- Senha
+ Senha e.key==='Enter'? handleSignIn() : null}
endAdornment={
{
window.open(res.data.path);
- console.log(res.data);
setOpenSnackSuccess(true)
}).catch(res => {
- console.log(res)
setOpenSnackError(true)
})
}
@@ -59,11 +57,13 @@ export default function industryInfo({userName}: any) {
Smart Energia - Info de Setor
-
-
+
-
+
+
+
+
Um resumo das atualizações gerais do Setor Elétrico, com dados sobre geração consumo, demanda, meteorologia baseadas em informações do ONS, CCEE, ANEEL, 10 Maiores Jornais e Revistas e CPTEC