fix telemetry inputs error

This commit is contained in:
joseCorte-exe 2022-07-11 16:41:00 -03:00
parent 56949556f2
commit a6bab6a6e1

View File

@ -122,9 +122,11 @@ export default function Telemetria({userName, clients}: any) {
); );
const handleChangeStartDate = (newValue: Date | null) => { const handleChangeStartDate = (newValue: Date | null) => {
console.log(newValue)
setStartDate(newValue) setStartDate(newValue)
}; };
const handleChangeEndDate = (newValue: Date | null) => { const handleChangeEndDate = (newValue: Date | null) => {
console.log(newValue)
setEndDate(newValue) setEndDate(newValue)
}; };
@ -327,7 +329,7 @@ export default function Telemetria({userName, clients}: any) {
: :
new Date(startDate).setUTCDate(startDate.getUTCDate()+1) new Date(startDate).setUTCDate(startDate.getUTCDate()+1)
} }
onChange={handleChangeEndDate} onChange={(newValue: any) => handleChangeEndDate(newValue)}
renderInput={(params) => <TextField {...params} sx={{ml: 1}}/>} renderInput={(params) => <TextField {...params} sx={{ml: 1}}/>}
/> />
</div> </div>