From 1050709fd231fc9f10b9acfb2697dd62aa3061fb Mon Sep 17 00:00:00 2001 From: pepper Date: Wed, 20 Jan 2021 00:02:02 -0500 Subject: [PATCH] general random quick fixes, added a few things to the env, and typo fixes --- .gitignore | 3 +++ src/components/root/common/Forms/CPanelBooking.js | 2 +- src/components/root/common/Tables/CompTable.js | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8692cf6..4d6a4fd 100644 --- a/.gitignore +++ b/.gitignore @@ -10,13 +10,16 @@ # production /build +build.zip # misc .DS_Store .env .env.local +.env.development .env.development.local .env.test.local +.env.production .env.production.local npm-debug.log* diff --git a/src/components/root/common/Forms/CPanelBooking.js b/src/components/root/common/Forms/CPanelBooking.js index c73c3d1..fc18041 100644 --- a/src/components/root/common/Forms/CPanelBooking.js +++ b/src/components/root/common/Forms/CPanelBooking.js @@ -48,7 +48,7 @@ export const CPanelBooking = (timeslots) => { const onSubmit = async (values, { setSubmitting, resetForm }) => { console.log(values); callAPI - .post("/", values) + .post("/book/", values) .then(function (response) { // console.log(response); // add function here diff --git a/src/components/root/common/Tables/CompTable.js b/src/components/root/common/Tables/CompTable.js index f24d899..e584a2b 100644 --- a/src/components/root/common/Tables/CompTable.js +++ b/src/components/root/common/Tables/CompTable.js @@ -152,6 +152,7 @@ const CompTable = (props) => { hover condensed key={columns.id} + keyField="id" />