Estado funcional do relatório de atendimento por usuário passando: id, dataInicio, dataFim

pull/1/head
adriano 2022-01-25 12:09:27 -03:00
parent dd06ac45c9
commit 3b4bef8266
1 changed files with 8 additions and 2 deletions

View File

@ -11,6 +11,12 @@ const MTable = (props) => {
const [selectedRow, setSelectedRow] = useState(null);
console.log('rederizou....................: ',props.data)
const dataLoad = props.data.map((dt) => { return { ...dt }});
const columnsLoad = props.columns.map((column) => { return { ...column }});
console.log('dataLoad....................: ',dataLoad)
console.log('columnsLoad....................: ',columnsLoad)
useEffect(() => {
@ -22,8 +28,8 @@ const MTable = (props) => {
<MaterialTable
title='Relatorio'
columns={props.columns}
data={props.data}
columns={columnsLoad}
data={dataLoad}
onRowClick={(evt, selectedRow) => {