fix dropdown selection problem

This commit is contained in:
prisar
2023-07-22 14:33:57 +05:30
parent a12dd7fd9c
commit 701d68f26b
3 changed files with 22 additions and 85 deletions

View File

@@ -24,43 +24,6 @@ function DeviceGraph({url, show}) {
}
}
// useEffect(() => {
// const q = query(collection(db, "testData"));
// const unsub = onSnapshot(q, (querySnapshot) => {
// const testDevices = [];
// querySnapshot.forEach((document) => {
// const hposTestData = document.data();
// // testDevices.push(hposTestData);
// // const { deviceSerialNo } = hposTestData;
// // console.log(document.data());
// });
// // setDevices(testDevices);
// });
// return () => unsub;
// }, []);
// useEffect(() => {
// // const q = query(collection(db, "testData"));
// // const unsub = onSnapshot(q, (querySnapshot) => {
// // const testDevices = [];
// // querySnapshot.forEach((document) => {
// // const hposTestData = document.data();
// // // testDevices.push(hposTestData);
// // // const { deviceSerialNo } = hposTestData;
// // console.log(document.data());
// // });
// // setDevices(testDevices);
// // });
// if (hposTests !== null) {
// const result = getTests();
// setHposTests(result);
// }
// }, []);
return (
<div>
<AbsorbanceGraph url={url} show={show} />