fix
This commit is contained in:
parent
144d9a4aa4
commit
745c198306
@ -63,7 +63,7 @@ export default function CostIndicatorChart({ title, data1, data2, label, subtitl
|
|||||||
dataArr.map(data => {
|
dataArr.map(data => {
|
||||||
sum += data;
|
sum += data;
|
||||||
});
|
});
|
||||||
const result = `${(parseFloat(value)/10).toLocaleString('pt-br').slice(0, 4)}`
|
const result = `${parseInt((parseInt(value)/10).toLocaleString('pt-br'))}`
|
||||||
|
|
||||||
return value==null? null : result
|
return value==null? null : result
|
||||||
},
|
},
|
||||||
|
|||||||
@ -103,7 +103,7 @@ export default function GrossMensalChart({ title, data1, data2, label, subtitle,
|
|||||||
{
|
{
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
label: 'Consolidado',
|
label: 'Consolidado',
|
||||||
data: data1.map(value => value?.economia_acumulada),
|
data: data1.map(value => !value.dad_estimado? value?.economia_acumulada : null),
|
||||||
backgroundColor: '#255488'
|
backgroundColor: '#255488'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -129,7 +129,7 @@ export default function Sidebar() {
|
|||||||
<Link href='/telemetria'><li className={router.pathname=='/telemetria'? 'actualPath' : null}><Image src='/assets/sidebar/telemetryIcon.svg' width={25} height={25} />{'Telemetria'}</li></Link>
|
<Link href='/telemetria'><li className={router.pathname=='/telemetria'? 'actualPath' : null}><Image src='/assets/sidebar/telemetryIcon.svg' width={25} height={25} />{'Telemetria'}</li></Link>
|
||||||
<Link href='/resumoOperacao'><li className={router.pathname=='/resumoOperacao'? 'actualPath' : null} ><Image src='/assets/sidebar/summaryOperationsIcon.svg' width={25} height={25} />{'Resumo de Op. '}</li></Link>
|
<Link href='/resumoOperacao'><li className={router.pathname=='/resumoOperacao'? 'actualPath' : null} ><Image src='/assets/sidebar/summaryOperationsIcon.svg' width={25} height={25} />{'Resumo de Op. '}</li></Link>
|
||||||
<Link href='/news'><li className={router.pathname=='/news'? 'actualPath' : null}><Image src='/assets/sidebar/newsIcon.svg' width={25} height={25} />{'Notícias'}</li></Link>
|
<Link href='/news'><li className={router.pathname=='/news'? 'actualPath' : null}><Image src='/assets/sidebar/newsIcon.svg' width={25} height={25} />{'Notícias'}</li></Link>
|
||||||
<Link href='/pld'><li onClick={() => setPldDrawer(!pldDrawer)} className={router.pathname=='/pld'? 'actualPath' : null}><Image src='/assets/sidebar/newsIcon.svg' width={25} height={25} />{'PLD >'}</li></Link>
|
<Link href='/pld'><li onClick={() => setPldDrawer(!pldDrawer)} className={router.pathname=='/pld'? 'actualPath' : null}><Image src='/assets/sidebar/newsIcon.svg' width={25} height={25} />{'PLD'}</li></Link>
|
||||||
{/* <div className='pldDrawer drawer'>
|
{/* <div className='pldDrawer drawer'>
|
||||||
<Link href='/pld'><li onClick={() => setPldMenu(0)} className={pldMenu==0? 'actualPathDrawer' : null}>PLD Histórico</li></Link>
|
<Link href='/pld'><li onClick={() => setPldMenu(0)} className={pldMenu==0? 'actualPathDrawer' : null}>PLD Histórico</li></Link>
|
||||||
<Link href='/pld'><li onClick={() => setPldMenu(1)} className={pldMenu===1? 'actualPathDrawer' : null}>Valores Diários</li></Link>
|
<Link href='/pld'><li onClick={() => setPldMenu(1)} className={pldMenu===1? 'actualPathDrawer' : null}>Valores Diários</li></Link>
|
||||||
|
|||||||
@ -14,13 +14,14 @@ import { Button, NewsView } from '../../styles/layouts/news/NewsView'
|
|||||||
|
|
||||||
export default function aboutUs({userName, news}: any) {
|
export default function aboutUs({userName, news}: any) {
|
||||||
return (
|
return (
|
||||||
<NewsView>
|
<main style={{display: 'flex', flexDirection: 'column'}}>
|
||||||
<Head>
|
<Head>
|
||||||
<title>Smart Energia - Noticias</title>
|
<title>Smart Energia - Noticias</title>
|
||||||
</Head>
|
</Head>
|
||||||
<Header name={userName}>
|
<Header name={userName}>
|
||||||
<PageTitle title='Notícias' subtitle='Tudo de importante no setor de energia'/>
|
<PageTitle title='Notícias' subtitle='Tudo de importante no setor de energia'/>
|
||||||
</Header>
|
</Header>
|
||||||
|
<NewsView>
|
||||||
{/* <Banner title='Notícias' subtitle='Tudo de importante no setor de energia' imgSource='/assets/banners/newsBanner.webp'/> */}
|
{/* <Banner title='Notícias' subtitle='Tudo de importante no setor de energia' imgSource='/assets/banners/newsBanner.webp'/> */}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -50,6 +51,7 @@ export default function aboutUs({userName, news}: any) {
|
|||||||
target={"_blank"}
|
target={"_blank"}
|
||||||
rel={"noreferrer"}><BasicButton title='Noticias Atualizadas' onClick={() => console.log()}/></a>
|
rel={"noreferrer"}><BasicButton title='Noticias Atualizadas' onClick={() => console.log()}/></a>
|
||||||
</NewsView>
|
</NewsView>
|
||||||
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,11 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
|
|
||||||
|
|
||||||
.datePicker {
|
.datePicker {
|
||||||
|
.MuiOutlinedInput-input, .MuiInputBase-input, .MuiInputBase-inputAdornedEnd, .css-nxo287-MuiInputBase-input-MuiOutlinedInput-input {
|
||||||
|
padding: 0 0 0 15px;
|
||||||
|
width: 100%;
|
||||||
|
height: 63px!important;
|
||||||
|
}
|
||||||
.css-1u3bzj6-MuiFormControl-root-MuiTextField-root,
|
.css-1u3bzj6-MuiFormControl-root-MuiTextField-root,
|
||||||
.css-o9k5xi-MuiInputBase-root-MuiOutlinedInput-root,
|
.css-o9k5xi-MuiInputBase-root-MuiOutlinedInput-root,
|
||||||
.css-o9k5xi-MuiInputBase-root-MuiOutlinedInput-root,
|
.css-o9k5xi-MuiInputBase-root-MuiOutlinedInput-root,
|
||||||
@ -54,8 +59,8 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
.css-nxo287-MuiInputBase-input-MuiOutlinedInput-input{
|
.css-nxo287-MuiInputBase-input-MuiOutlinedInput-input{
|
||||||
/* background-color: red; */
|
/* background-color: red; */
|
||||||
/* position: relative; */
|
/* position: relative; */
|
||||||
width: 100%;
|
/* width: 100%;
|
||||||
height:68px;
|
height:63px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.MuiFormControl-root,
|
.MuiFormControl-root,
|
||||||
@ -76,7 +81,7 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
.MuiOutlinedInput-input,
|
.MuiOutlinedInput-input,
|
||||||
.MuiInputBase-input .MuiInputBase-inputAdornedEnd,
|
.MuiInputBase-input .MuiInputBase-inputAdornedEnd,
|
||||||
.css-nxo287-MuiInputBase-input-MuiOutlinedInput-input {
|
.css-nxo287-MuiInputBase-input-MuiOutlinedInput-input {
|
||||||
padding-top: 6px;
|
/* padding-top: 6px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.MuiButtonBase-root,
|
.MuiButtonBase-root,
|
||||||
@ -84,8 +89,8 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
.MuiIconButton-edgeEnd,
|
.MuiIconButton-edgeEnd,
|
||||||
.MuiIconButton-sizeMedium,
|
.MuiIconButton-sizeMedium,
|
||||||
.css-1yq5fb3-MuiButtonBase-root-MuiIconButton-root {
|
.css-1yq5fb3-MuiButtonBase-root-MuiIconButton-root {
|
||||||
width: 30px;
|
/* width: 30px;
|
||||||
height: 30px;
|
height: 30px; */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +102,7 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
.MuiFormLabel-colorPrimary,
|
.MuiFormLabel-colorPrimary,
|
||||||
.MuiFormLabel-filled,
|
.MuiFormLabel-filled,
|
||||||
.css-1sumxir-MuiFormLabel-root-MuiInputLabel-root {
|
.css-1sumxir-MuiFormLabel-root-MuiInputLabel-root {
|
||||||
color: rgba(0, 0, 0, 0.6);
|
/* color: rgba(0, 0, 0, 0.6);
|
||||||
font-family: "Roboto","Helvetica","Arial",sans-serif;
|
font-family: "Roboto","Helvetica","Arial",sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
@ -115,6 +120,6 @@ export const GlobalStyle = createGlobalStyle`
|
|||||||
left: 0;
|
left: 0;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
pointer-events: auto;
|
pointer-events: auto; */
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user