diff --git a/.gitignore b/.gitignore index f21726c7..cd282e0a 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ .env.test.local .env.production.local .env +.env.production npm-debug.log* yarn-debug.log* diff --git a/src/components/ImportCSV.tsx b/src/components/ImportCSV.tsx index 04e11042..67e358cd 100644 --- a/src/components/ImportCSV.tsx +++ b/src/components/ImportCSV.tsx @@ -17,7 +17,7 @@ import Select from "@material-ui/core/Select"; import FormControl from "@material-ui/core/FormControl"; import InputLabel from "@material-ui/core/InputLabel"; import MenuItem from "@material-ui/core/MenuItem"; - +import AddCSVIcon from "@material-ui/icons/PlaylistAdd"; import ArrowIcon from "@material-ui/icons/TrendingFlatOutlined"; import AddIcon from "@material-ui/icons/Add"; import DeleteIcon from "@material-ui/icons/Delete"; @@ -102,7 +102,9 @@ export default function ImportCSV(props: any) { return (
- + createStyles({ @@ -67,11 +68,6 @@ const Navigation = (props: any) => { - - - {props.header} - - {props.children} @@ -122,7 +118,13 @@ const Navigation = (props: any) => { )} )} - + {/* */}
diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index 3b51c1e7..c6cdd909 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -22,6 +22,9 @@ import { CLOUD_FUNCTIONS } from "firebase/callables"; import ImportCSV from "components/ImportCSV"; import SearchBox from "../SearchBox"; import DocSelect from "../Fields/DocSelect"; +import Grid from "@material-ui/core/Grid"; +import Typography from "@material-ui/core/Typography"; +import AddIcon from "@material-ui/icons/Add"; const deleteAlgoliaRecord = functions.httpsCallable( CLOUD_FUNCTIONS.deleteAlgoliaRecord @@ -155,9 +158,25 @@ function Table(props: any) { ), }); - const rows = tableState.rows; //.map((row: any) => ({ height: 100, ...row })); + const rows = tableState.rows; + return ( <> + + {collection} + + + - - + + );