commenting out absolutely everyhitng
This commit is contained in:
parent
cad5ac3d7b
commit
968d314249
1 changed files with 63 additions and 63 deletions
|
|
@ -6,58 +6,58 @@ import React from "react";
|
||||||
import { useMobile } from "hooks";
|
import { useMobile } from "hooks";
|
||||||
import classNames from "classnames";
|
import classNames from "classnames";
|
||||||
|
|
||||||
const useStyles = makeStyles((theme: Theme) => {
|
// const useStyles = makeStyles((theme: Theme) => {
|
||||||
const isMobile = useMobile()
|
// const isMobile = useMobile()
|
||||||
return ({
|
// return ({
|
||||||
gutter: {
|
// gutter: {
|
||||||
backgroundColor: darken(theme.palette.background.paper, 0.05),
|
// backgroundColor: darken(theme.palette.background.paper, 0.05),
|
||||||
border: "none"
|
// border: "none"
|
||||||
},
|
|
||||||
// tableContainer: {
|
|
||||||
// // margin: theme.spacing(1),
|
|
||||||
// // [theme.breakpoints.up("sm")]: {
|
|
||||||
// // margin: theme.spacing(2)
|
|
||||||
// // },
|
|
||||||
// // width: "auto"
|
|
||||||
// },
|
// },
|
||||||
title: {
|
// // tableContainer: {
|
||||||
padding: theme.spacing(1),
|
// // // margin: theme.spacing(1),
|
||||||
},
|
// // // [theme.breakpoints.up("sm")]: {
|
||||||
subtitle: {
|
// // // margin: theme.spacing(2)
|
||||||
padding: theme.spacing(1),
|
// // // },
|
||||||
marginTop: theme.spacing(-2),
|
// // // width: "auto"
|
||||||
},
|
// // },
|
||||||
titleComp: {
|
// title: {
|
||||||
padding: theme.spacing(1),
|
// padding: theme.spacing(1),
|
||||||
marginLeft: theme.spacing(-1)
|
// },
|
||||||
},
|
// subtitle: {
|
||||||
subtitleComp: {
|
// padding: theme.spacing(1),
|
||||||
padding: theme.spacing(1),
|
// marginTop: theme.spacing(-2),
|
||||||
marginTop: theme.spacing(-2),
|
// },
|
||||||
marginLeft: theme.spacing(-1),
|
// titleComp: {
|
||||||
},
|
// padding: theme.spacing(1),
|
||||||
titleContainer: {
|
// marginLeft: theme.spacing(-1)
|
||||||
border: "none",
|
// },
|
||||||
},
|
// subtitleComp: {
|
||||||
searchContainer: {
|
// padding: theme.spacing(1),
|
||||||
border: "none",
|
// marginTop: theme.spacing(-2),
|
||||||
textAlign: "right",
|
// marginLeft: theme.spacing(-1),
|
||||||
},
|
// },
|
||||||
mobileTitleBox: {
|
// titleContainer: {
|
||||||
margin: theme.spacing(1),
|
// border: "none",
|
||||||
marginBottom: theme.spacing(1.5),
|
// },
|
||||||
},
|
// searchContainer: {
|
||||||
card: {
|
// border: "none",
|
||||||
margin: theme.spacing(1),
|
// textAlign: "right",
|
||||||
},
|
// },
|
||||||
rowHover: {
|
// mobileTitleBox: {
|
||||||
cursor: "pointer",
|
// margin: theme.spacing(1),
|
||||||
"&:hover": {
|
// marginBottom: theme.spacing(1.5),
|
||||||
backgroundColor: !isMobile && "rgba(150, 150, 150, 0.15)",
|
// },
|
||||||
}
|
// card: {
|
||||||
}
|
// margin: theme.spacing(1),
|
||||||
})},
|
// },
|
||||||
);
|
// rowHover: {
|
||||||
|
// cursor: "pointer",
|
||||||
|
// "&:hover": {
|
||||||
|
// backgroundColor: !isMobile && "rgba(150, 150, 150, 0.15)",
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })},
|
||||||
|
// );
|
||||||
|
|
||||||
export interface Column<T> {
|
export interface Column<T> {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
@ -122,21 +122,21 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
||||||
// mobileView,
|
// mobileView,
|
||||||
// hidePagination
|
// hidePagination
|
||||||
} = props
|
} = props
|
||||||
const classes = useStyles();
|
// const classes = useStyles();
|
||||||
const columns = typeof(props.columns) === "function" ? props.columns() : props.columns
|
// const columns = typeof(props.columns) === "function" ? props.columns() : props.columns
|
||||||
const subtitle = typeof(props.subtitle) === "function" ? props.subtitle() : props.subtitle
|
// const subtitle = typeof(props.subtitle) === "function" ? props.subtitle() : props.subtitle
|
||||||
const title = typeof(props.title) === "function" ? props.title() : props.title
|
// const title = typeof(props.title) === "function" ? props.title() : props.title
|
||||||
|
|
||||||
const isMobile = useMobile()
|
// const isMobile = useMobile()
|
||||||
|
|
||||||
const [inputSearchText, setInputSearchText] = useState("");
|
// const [inputSearchText, setInputSearchText] = useState("");
|
||||||
const [openGutters, setOpenGutters] = useState<number[]>([])
|
// const [openGutters, setOpenGutters] = useState<number[]>([])
|
||||||
const [handler, setHandler] = useState<NodeJS.Timeout | undefined>(undefined);
|
// const [handler, setHandler] = useState<NodeJS.Timeout | undefined>(undefined);
|
||||||
const [columnAnchor, setColumnAnchor] = useState<any>(null)
|
// const [columnAnchor, setColumnAnchor] = useState<any>(null)
|
||||||
|
|
||||||
const filterKey = window.location.pathname.split('/').pop() + "-table-filter-list";
|
// const filterKey = window.location.pathname.split('/').pop() + "-table-filter-list";
|
||||||
|
|
||||||
console.log("Commented out nearly everything")
|
console.log("Commented out absolutely everything")
|
||||||
|
|
||||||
// const [filterList, setFilterList] = useState<string[]>(() => {
|
// const [filterList, setFilterList] = useState<string[]>(() => {
|
||||||
// const saved = localStorage.getItem(filterKey);
|
// const saved = localStorage.getItem(filterKey);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue