From 001f8530ee580313bc2267a83f536f505a323bfe Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Fri, 8 Jul 2022 17:15:38 -0300 Subject: [PATCH] more fixes --- src/components/sidebar/Sidebar.tsx | 26 +-- src/components/sidebar/SidebarView.ts | 41 +++++ src/contexts/AuthContext.tsx | 2 +- src/pages/chartTelemetry/index.tsx | 149 +++--------------- src/pages/estimatedCost/index.tsx | 2 +- src/pages/resumoOperacao/index.tsx | 94 ++++++----- src/services/charts/telemetry/getDemand.ts | 10 +- .../charts/telemetry/getDiscretization.ts | 10 +- .../charts/telemetry/getPowerFactor.ts | 20 ++- .../ResumoOperacao/ResumoOperacaoView.ts | 11 ++ src/styles/layouts/pld/PldView.ts | 10 ++ 11 files changed, 188 insertions(+), 187 deletions(-) diff --git a/src/components/sidebar/Sidebar.tsx b/src/components/sidebar/Sidebar.tsx index e90d1b7..12e3a27 100644 --- a/src/components/sidebar/Sidebar.tsx +++ b/src/components/sidebar/Sidebar.tsx @@ -12,18 +12,21 @@ import { AuthContext } from '../../contexts/AuthContext'; import { api } from '../../services/api'; import RenderIf from '../../utils/renderIf'; -import { SidebarView } from './SidebarView' +import { ModalContainer, SidebarView } from './SidebarView' const style = { position: 'absolute' as const, top: '50%', left: '50%', transform: 'translate(-50%, -50%)', - width: 400, + height: 500, + width: 680, bgcolor: 'background.paper', border: '2px solid #000', boxShadow: 24, p: 4, + + borderRadius: 1 }; export default function Sidebar() { @@ -126,13 +129,18 @@ export default function Sidebar() { aria-labelledby="modal-modal-title" aria-describedby="modal-modal-description" > - - - Deseja realmente sair ? - - - - + + + + + Deseja realmente sair ? + +
+ + +
+
+