adding in the hook in the style declaration back in

This commit is contained in:
csawatzky 2025-04-10 14:35:04 -06:00
parent 17c018c545
commit 40a4c51a66

View file

@ -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,7 +136,7 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
const filterKey = window.location.pathname.split('/').pop() + "-table-filter-list";
console.log("Put back everything minus the style classes")
console.log("added the hook back")
const [filterList, setFilterList] = useState<string[]>(() => {
const saved = localStorage.getItem(filterKey);