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 classNames from "classnames";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => {
|
||||
const isMobile = useMobile()
|
||||
return ({
|
||||
gutter: {
|
||||
backgroundColor: darken(theme.palette.background.paper, 0.05),
|
||||
border: "none"
|
||||
},
|
||||
// tableContainer: {
|
||||
// // margin: theme.spacing(1),
|
||||
// // [theme.breakpoints.up("sm")]: {
|
||||
// // margin: theme.spacing(2)
|
||||
// // },
|
||||
// // width: "auto"
|
||||
// },
|
||||
title: {
|
||||
padding: theme.spacing(1),
|
||||
},
|
||||
subtitle: {
|
||||
padding: theme.spacing(1),
|
||||
marginTop: theme.spacing(-2),
|
||||
},
|
||||
titleComp: {
|
||||
padding: theme.spacing(1),
|
||||
marginLeft: theme.spacing(-1)
|
||||
},
|
||||
subtitleComp: {
|
||||
padding: theme.spacing(1),
|
||||
marginTop: theme.spacing(-2),
|
||||
marginLeft: theme.spacing(-1),
|
||||
},
|
||||
titleContainer: {
|
||||
border: "none",
|
||||
},
|
||||
searchContainer: {
|
||||
border: "none",
|
||||
textAlign: "right",
|
||||
},
|
||||
mobileTitleBox: {
|
||||
margin: theme.spacing(1),
|
||||
marginBottom: theme.spacing(1.5),
|
||||
},
|
||||
card: {
|
||||
margin: theme.spacing(1),
|
||||
},
|
||||
rowHover: {
|
||||
cursor: "pointer",
|
||||
"&:hover": {
|
||||
backgroundColor: !isMobile && "rgba(150, 150, 150, 0.15)",
|
||||
}
|
||||
}
|
||||
})},
|
||||
);
|
||||
// const useStyles = makeStyles((theme: Theme) => {
|
||||
// const isMobile = useMobile()
|
||||
// return ({
|
||||
// gutter: {
|
||||
// backgroundColor: darken(theme.palette.background.paper, 0.05),
|
||||
// border: "none"
|
||||
// },
|
||||
// // tableContainer: {
|
||||
// // // margin: theme.spacing(1),
|
||||
// // // [theme.breakpoints.up("sm")]: {
|
||||
// // // margin: theme.spacing(2)
|
||||
// // // },
|
||||
// // // width: "auto"
|
||||
// // },
|
||||
// title: {
|
||||
// padding: theme.spacing(1),
|
||||
// },
|
||||
// subtitle: {
|
||||
// padding: theme.spacing(1),
|
||||
// marginTop: theme.spacing(-2),
|
||||
// },
|
||||
// titleComp: {
|
||||
// padding: theme.spacing(1),
|
||||
// marginLeft: theme.spacing(-1)
|
||||
// },
|
||||
// subtitleComp: {
|
||||
// padding: theme.spacing(1),
|
||||
// marginTop: theme.spacing(-2),
|
||||
// marginLeft: theme.spacing(-1),
|
||||
// },
|
||||
// titleContainer: {
|
||||
// border: "none",
|
||||
// },
|
||||
// searchContainer: {
|
||||
// border: "none",
|
||||
// textAlign: "right",
|
||||
// },
|
||||
// mobileTitleBox: {
|
||||
// margin: theme.spacing(1),
|
||||
// marginBottom: theme.spacing(1.5),
|
||||
// },
|
||||
// card: {
|
||||
// margin: theme.spacing(1),
|
||||
// },
|
||||
// rowHover: {
|
||||
// cursor: "pointer",
|
||||
// "&:hover": {
|
||||
// backgroundColor: !isMobile && "rgba(150, 150, 150, 0.15)",
|
||||
// }
|
||||
// }
|
||||
// })},
|
||||
// );
|
||||
|
||||
export interface Column<T> {
|
||||
title: string;
|
||||
|
|
@ -122,21 +122,21 @@ export default function ResponsiveTable<T extends Object>(props: Props<T>) {
|
|||
// mobileView,
|
||||
// hidePagination
|
||||
} = props
|
||||
const classes = useStyles();
|
||||
const columns = typeof(props.columns) === "function" ? props.columns() : props.columns
|
||||
const subtitle = typeof(props.subtitle) === "function" ? props.subtitle() : props.subtitle
|
||||
const title = typeof(props.title) === "function" ? props.title() : props.title
|
||||
// const classes = useStyles();
|
||||
// const columns = typeof(props.columns) === "function" ? props.columns() : props.columns
|
||||
// const subtitle = typeof(props.subtitle) === "function" ? props.subtitle() : props.subtitle
|
||||
// const title = typeof(props.title) === "function" ? props.title() : props.title
|
||||
|
||||
const isMobile = useMobile()
|
||||
// const isMobile = useMobile()
|
||||
|
||||
const [inputSearchText, setInputSearchText] = useState("");
|
||||
const [openGutters, setOpenGutters] = useState<number[]>([])
|
||||
const [handler, setHandler] = useState<NodeJS.Timeout | undefined>(undefined);
|
||||
const [columnAnchor, setColumnAnchor] = useState<any>(null)
|
||||
// const [inputSearchText, setInputSearchText] = useState("");
|
||||
// const [openGutters, setOpenGutters] = useState<number[]>([])
|
||||
// const [handler, setHandler] = useState<NodeJS.Timeout | undefined>(undefined);
|
||||
// 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 saved = localStorage.getItem(filterKey);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue