From cdad408152e1b9446732d0cc0474ef5630cd4488 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Thu, 10 Apr 2025 14:44:06 -0600 Subject: [PATCH] removed the mobile hook as that is what is the problem with the table, also removed the logs that are not needed anymore --- src/cableEstimator/cableEstimator.tsx | 1 - src/cableEstimator/cableMounting.tsx | 4 ---- src/cableEstimator/cableTable.tsx | 1 - src/common/ResponsiveTable.tsx | 10 ++++------ src/pages/Heaters.tsx | 1 - src/pages/Sites.tsx | 2 -- src/transactions/transactionViewer.tsx | 2 -- 7 files changed, 4 insertions(+), 17 deletions(-) diff --git a/src/cableEstimator/cableEstimator.tsx b/src/cableEstimator/cableEstimator.tsx index a497c90..f587efd 100644 --- a/src/cableEstimator/cableEstimator.tsx +++ b/src/cableEstimator/cableEstimator.tsx @@ -173,7 +173,6 @@ export default function CableEstimator() { setRowCount(clone.length) //split out the first x amount for the page let rows = clone.splice(tablePage * pageSize, pageSize) - console.log("cableEstimator: " + rows) setDisplayedRows(rows) setLoading(false) },[binOptions, tablePage, pageSize, tableSearch]) diff --git a/src/cableEstimator/cableMounting.tsx b/src/cableEstimator/cableMounting.tsx index e4913fc..fa14289 100644 --- a/src/cableEstimator/cableMounting.tsx +++ b/src/cableEstimator/cableMounting.tsx @@ -56,10 +56,6 @@ export default function CableMounting(props: Props) { } ] - useEffect(()=>{ - console.log("cableMounting: " + bin.CableSums) - },[bin]) - return ( title={Install Guide} diff --git a/src/cableEstimator/cableTable.tsx b/src/cableEstimator/cableTable.tsx index a0913e5..ee73c55 100644 --- a/src/cableEstimator/cableTable.tsx +++ b/src/cableEstimator/cableTable.tsx @@ -24,7 +24,6 @@ export default function CableTable(props: Props) { convertedCables.forEach(cable => { cable.Length = Math.round(distanceConversion(cable.Length) * 100) / 100; }); - console.log("cableTable: " + cableData) setCableData(convertedCables); }, [bin]); diff --git a/src/common/ResponsiveTable.tsx b/src/common/ResponsiveTable.tsx index b20fb6e..e7fb4a1 100644 --- a/src/common/ResponsiveTable.tsx +++ b/src/common/ResponsiveTable.tsx @@ -7,7 +7,7 @@ import { useMobile } from "hooks"; import classNames from "classnames"; const useStyles = makeStyles((theme: Theme) => { - const isMobile = useMobile() + //const isMobile = useMobile() return ({ gutter: { backgroundColor: darken(theme.palette.background.paper, 0.05), @@ -52,9 +52,9 @@ const useStyles = makeStyles((theme: Theme) => { }, rowHover: { cursor: "pointer", - "&:hover": { - backgroundColor: !isMobile && "rgba(150, 150, 150, 0.15)", - } + // "&:hover": { + // backgroundColor: !isMobile && "rgba(150, 150, 150, 0.15)", + // } } })}, ); @@ -136,8 +136,6 @@ export default function ResponsiveTable(props: Props) { const filterKey = window.location.pathname.split('/').pop() + "-table-filter-list"; - console.log("added the hook back") - const [filterList, setFilterList] = useState(() => { const saved = localStorage.getItem(filterKey); return saved ? JSON.parse(saved) : []; diff --git a/src/pages/Heaters.tsx b/src/pages/Heaters.tsx index ce9752e..15dcb22 100644 --- a/src/pages/Heaters.tsx +++ b/src/pages/Heaters.tsx @@ -97,7 +97,6 @@ export default function Heaters() { } const desktopTable = () => { - console.log("Heater: " + heaters) return ( title={"Heaters"} diff --git a/src/pages/Sites.tsx b/src/pages/Sites.tsx index 09cc646..69784ac 100644 --- a/src/pages/Sites.tsx +++ b/src/pages/Sites.tsx @@ -45,7 +45,6 @@ export default function Sites() { siteAPI .listSitesPageData(pageSize, tablePage * pageSize, "asc", "siteName", undefined, as) .then(resp => { - console.log(resp) setTotal(resp.data.total); buildTableData(resp.data.sites); }) @@ -176,7 +175,6 @@ export default function Sites() { }; const desktopView = () => { - console.log("Sites: " + sites) return ( title={"Jobsites"} diff --git a/src/transactions/transactionViewer.tsx b/src/transactions/transactionViewer.tsx index 2f37377..f1bd563 100644 --- a/src/transactions/transactionViewer.tsx +++ b/src/transactions/transactionViewer.tsx @@ -81,8 +81,6 @@ export default function TransactionViewer(props: Props) { }; const myTable = () => { - console.log("transactionViewer: " + displayedRows) - //console.log(transactions) return ( isLoading={loading}