adding in the hook in the style declaration back in
This commit is contained in:
parent
17c018c545
commit
40a4c51a66
1 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue