Merge branch 'testeA'
commit
f74ce5549f
|
@ -48,7 +48,7 @@ const ExportCSV = (props) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Button onClick={getTransactionData}>EXPORT CSV</Button>
|
<Button onClick={getTransactionData}>CSV EXPORT</Button>
|
||||||
<CSVLink
|
<CSVLink
|
||||||
headers={header}
|
headers={header}
|
||||||
data={dataRow}
|
data={dataRow}
|
||||||
|
|
|
@ -11,7 +11,9 @@ const MTable = (props) => {
|
||||||
const [selectedRow, setSelectedRow] = useState(null);
|
const [selectedRow, setSelectedRow] = useState(null);
|
||||||
|
|
||||||
|
|
||||||
const dataLoad = props.data.map((dt) => { return { ...dt }});
|
//const dataLoad = props.data.map((dt) => { return { ...dt }});
|
||||||
|
const dataLoad = props.data.map(({user, ...others})=>({...others, 'user': user ? user : {name: 'Aguardando atendente', email:''}}));
|
||||||
|
|
||||||
const columnsLoad = props.columns.map((column) => { return { ...column }});
|
const columnsLoad = props.columns.map((column) => { return { ...column }});
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue