From 891d7acab5aa1897f8836854d7bbca5d4b13953b Mon Sep 17 00:00:00 2001 From: Alex Santos Date: Tue, 28 Jun 2022 17:20:07 -0300 Subject: [PATCH] update --- src/components/pageTitle/PageTitle.tsx | 2 +- src/pages/resumoOperacao.tsx | 27 -------------- .../layouts/industryInfo/IndustryInfoView.ts | 37 ------------------- 3 files changed, 1 insertion(+), 65 deletions(-) diff --git a/src/components/pageTitle/PageTitle.tsx b/src/components/pageTitle/PageTitle.tsx index 091dd06..5a861ab 100644 --- a/src/components/pageTitle/PageTitle.tsx +++ b/src/components/pageTitle/PageTitle.tsx @@ -9,7 +9,7 @@ interface PageTitleInterface { export default function PageTitle({ title, subtitle }: PageTitleInterface) { return ( -

{title}

+

{title}

{subtitle}

) diff --git a/src/pages/resumoOperacao.tsx b/src/pages/resumoOperacao.tsx index a144c82..ef28880 100644 --- a/src/pages/resumoOperacao.tsx +++ b/src/pages/resumoOperacao.tsx @@ -36,53 +36,27 @@ export default function ResumoOperacao({tableData, clientsData, userName, client setUnidade(event.target.value); }; - function stringToBytes(text) { - const length = text.length; - const result = new Uint8Array(length); - for (let i = 0; i < length; i++) { - const code = text.charCodeAt(i); - const byte = code > 255 ? 32 : code; - result[i] = byte; - } - return result; - } - - // const originalString = 'ååå'; - // const bytes = stringToBytes(originalString); - // const blob = new Blob([bytes.buffer], { type: 'text/plain; charset=ISO-8859-1' }); - function downloadCSVFile(csv, filename) { const csv_file = new Blob(["\ufeff",csv], {type: "text/csv"}); - const download_link = document.createElement("a"); - download_link.download = filename; - download_link.href = window.URL.createObjectURL(csv_file); - download_link.style.display = "none"; - document.body.appendChild(download_link); - download_link.click(); } function htmlToCSV(html, filename) { const data = []; const rows = document.querySelectorAll("table tr"); - for (let i = 0; i < rows.length; i++) { const row = [], cols: any = rows[i].querySelectorAll("td, th"); - for (let j = 0; j < cols.length; j++) { row.push(cols[j].innerText); } - - data.push(row.join(";")); } - downloadCSVFile(data.join("\n"), filename); } @@ -123,7 +97,6 @@ export default function ResumoOperacao({tableData, clientsData, userName, client
-

Filtrar por Unidade e/ou Mês

diff --git a/src/styles/layouts/industryInfo/IndustryInfoView.ts b/src/styles/layouts/industryInfo/IndustryInfoView.ts index 624cc92..f7b589e 100644 --- a/src/styles/layouts/industryInfo/IndustryInfoView.ts +++ b/src/styles/layouts/industryInfo/IndustryInfoView.ts @@ -3,7 +3,6 @@ import styled from "styled-components"; export const IndustryInfoView = styled.main` display: flex; flex-direction: column; - width: 100%; .title { @@ -13,17 +12,12 @@ export const IndustryInfoView = styled.main` button{ height: 70px; width: 30%; - cursor: pointer; - background: #254F7F; - border-radius: 8px; border-style: none; - font-family: 'Poppins'; font-size: 90%; - color: #FFFFFF; } @@ -50,36 +44,5 @@ export const IndustryInfoView = styled.main` border: 1px solid black; border-radius: 6px; } - label { - } - - /* .inputTeste{ - display: flex; - align-items: center; - width: 50%; - height: 50px; - background: white; - border-radius:10px; - } - - input[type="file"] { - display: block; - } - - label { - display: flex; - justify-content: flex-start; - padding: 2px 10px; - width: 200px; - background-color: #333; - color: #FFF; - text-transform: uppercase; - text-align: center; - display: block; - margin-top: 10px; - cursor: pointer; - } */ - - `