From 048d9f2f10b30cdca35319b6b77b4c2cfe6b54a4 Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Thu, 23 Jun 2022 16:54:31 -0300 Subject: [PATCH 1/2] fixing input --- src/components/inputUploadImg/inputUpload.tsx | 5 ++-- .../inputUploadPdf/inputUploadView.ts | 2 +- src/pages/administrative/clients/index.tsx | 23 +++++++++++++++++-- .../administrative/industryInfo/index.tsx | 14 +++++++++-- 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/src/components/inputUploadImg/inputUpload.tsx b/src/components/inputUploadImg/inputUpload.tsx index 34daa86..a007992 100644 --- a/src/components/inputUploadImg/inputUpload.tsx +++ b/src/components/inputUploadImg/inputUpload.tsx @@ -24,12 +24,11 @@ export default function InputUploadPdf() {
- {imageURLS.map((imageSrc, index) => ( + {imageURLS.map((imageSrc, index) => ( not fount ))} -
- +
diff --git a/src/components/inputUploadPdf/inputUploadView.ts b/src/components/inputUploadPdf/inputUploadView.ts index fed659c..026159b 100644 --- a/src/components/inputUploadPdf/inputUploadView.ts +++ b/src/components/inputUploadPdf/inputUploadView.ts @@ -16,7 +16,7 @@ input[type="file"] { label { width: 140px; height: 30px; - margin-top: -30px; + margin-top: 10px; border-radius: 4px; margin-left: 69px; background-color: #254F7F; diff --git a/src/pages/administrative/clients/index.tsx b/src/pages/administrative/clients/index.tsx index a9ebdf0..787cea7 100644 --- a/src/pages/administrative/clients/index.tsx +++ b/src/pages/administrative/clients/index.tsx @@ -22,6 +22,7 @@ import { GetServerSideProps } from 'next'; import getAPIClient from '../../../services/ssrApi'; import FormData from 'form-data'; +import { InputUploadView } from '../../../components/inputUploadImg/inputUploadView'; const style = { position: 'absolute' as const, @@ -196,8 +197,26 @@ export default function clients({clients, userName}) { client_id: value.target.value }) }} variant="outlined" /> - - {/* */} + + +
+
+ +
+ +
+ +
+ +
+
+ + +
+
+
+ +


setOpen(false)} /> handleCreateClient(client)}/> diff --git a/src/pages/administrative/industryInfo/index.tsx b/src/pages/administrative/industryInfo/index.tsx index b095c98..5cdf3bb 100644 --- a/src/pages/administrative/industryInfo/index.tsx +++ b/src/pages/administrative/industryInfo/index.tsx @@ -13,6 +13,7 @@ import FormData from 'form-data'; import Snackbar from '@mui/material/Snackbar'; import MuiAlert, { AlertProps } from '@mui/material/Alert'; +import { InputUploadView } from '../../../components/inputUploadPdf/inputUploadView' const Alert = React.forwardRef(function Alert( props, @@ -69,8 +70,17 @@ export default function industryInfo({userName}: any) {
- - + +
+
+
+ + +
+
+
+
+ {/* */}
handleCreateClient()} title='Atualizar'/> From 8bc13d035b17f2e66cf25780b909008e1fe5968b Mon Sep 17 00:00:00 2001 From: joseCorte-exe Date: Thu, 23 Jun 2022 17:41:37 -0300 Subject: [PATCH 2/2] :art: change resumo operacao selects position --- src/pages/resumoOperacao.tsx | 8 +++++--- src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/pages/resumoOperacao.tsx b/src/pages/resumoOperacao.tsx index dc44829..9aa7d9a 100644 --- a/src/pages/resumoOperacao.tsx +++ b/src/pages/resumoOperacao.tsx @@ -84,6 +84,8 @@ export default function ResumoOperacao({tableData, clientsData, userName, client } else { setTableDataState(tableData) } + + console.log(month) }, [month, unidade]) return ( @@ -96,7 +98,7 @@ export default function ResumoOperacao({tableData, clientsData, userName, client

Seletor Mês

- + Unidades Nenhum { clientMonth.map((value) => { - return {monthLabels[parseFloat(value.mes.slice(3, 4))-1]} + return {monthLabels[parseFloat(value.mes.slice(3, 4))-1]} }) } diff --git a/src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts b/src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts index c059741..2e6db5b 100644 --- a/src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts +++ b/src/styles/layouts/ResumoOperacao/ResumoOperacaoView.ts @@ -19,6 +19,7 @@ export const TableView = styled.div` .select{ display: flex; + flex-direction: column; margin-bottom: 25px;