Merge branch 'administativePages' of https://gitlab.com/kluppsoftware/smart-energia-web into administativePages

This commit is contained in:
joseCorte-exe 2022-06-29 12:30:13 -03:00
commit 97dd4d51a5
3 changed files with 2 additions and 8 deletions

View File

@ -114,8 +114,6 @@ export default function index({userName, initialText}: any) {
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
}}
/>
</GeneralView>
)
}

View File

@ -6,15 +6,11 @@ import BasicButton from '../../../components/buttons/basicButton/BasicButton'
import Header from '../../../components/header/Header'
import PageTitle from '../../../components/pageTitle/PageTitle'
import { IndustryInfoView } from '../../../styles/layouts/industryInfo/IndustryInfoView'
import InputUploadPdf from '../../../components/inputUploadPdf/inputUpload';
import { api } from '../../../services/api'
// import PdfThumbnail from 'react-pdf-thumbnail';
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<HTMLDivElement, AlertProps>(function Alert(
props,

View File

@ -131,7 +131,7 @@ export default function pld({tableData, graphByHourData, graphByMonthData, userN
const dateFormated = new Date()
function downloadCSVFile(csv, filename) {
const csv_file = new Blob([csv], {type: "text/csv"});
const csv_file = new Blob(["\ufeff",csv], {type: "text/csv"});
const download_link = document.createElement("a");
@ -157,7 +157,7 @@ export default function pld({tableData, graphByHourData, graphByMonthData, userN
row.push(cols[j].innerText);
}
data.push(row.join(","));
data.push(row.join(";"));
}
downloadCSVFile(data.join("\n"), filename);