Comentário do botão CSV EPORT

pull/20/head
adriano 2022-08-18 12:18:42 -03:00
parent aaf15a1847
commit 76bc672314
1 changed files with 38 additions and 30 deletions

View File

@ -667,24 +667,32 @@ const Report = () => {
{reportOption === '1' && {reportOption === '1' &&
<div> <div>
<Button style={{display: "none"}} {/* <Button style={{ display: "none" }}
variant="contained" variant="contained"
color="primary" color="primary"
onClick={(e) => { onClick={(e) => {
handleCSVMessages() handleCSVMessages()
}} }}
> > */}
{"CSV ALL"}
</Button>
<div> {/* <Button
<CSVLink variant="contained"
data={dataCSV} color="primary"
headers={columns} onClick={(e) => {
filename={'Relatorio_detalhado_atendimento_atendentes.csv'} handleCSVMessages()
target={'_blank'} }}
ref={csvLink} /> >
</div> {"CSV ALL"}
</Button> */}
<div>
<CSVLink
data={dataCSV}
headers={columns}
filename={'Relatorio_detalhado_atendimento_atendentes.csv'}
target={'_blank'}
ref={csvLink} />
</div>
</div> </div>
} }