aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/Form/Items/RegisterItemForm.tsx9
-rw-r--r--src/components/Form/People/RegisterPersonForm.tsx8
-rw-r--r--src/styles/global.scss1
3 files changed, 3 insertions, 15 deletions
diff --git a/src/components/Form/Items/RegisterItemForm.tsx b/src/components/Form/Items/RegisterItemForm.tsx
index c782df5..886628c 100644
--- a/src/components/Form/Items/RegisterItemForm.tsx
+++ b/src/components/Form/Items/RegisterItemForm.tsx
@@ -47,14 +47,7 @@ const RegisterItemForm: React.FC<props> = (props) => {
// TODO: show confirmation before being invisible
// TODO: Implement override protection
- axios.post(
- `/api/items/register/`
- + `?model=${newItem.Model}`
- + `&desc=${newItem.Description}`
- + `&price=${newItem.UnitPrice}`
- + `&hsn=${newItem.HSN}`
- + `&gst=${newItem.TotalGST}`
- )
+ axios.post("/api/items/register", newItem)
.then((res) => {
console.log(res);
hideSelf();
diff --git a/src/components/Form/People/RegisterPersonForm.tsx b/src/components/Form/People/RegisterPersonForm.tsx
index 66de169..9e3b155 100644
--- a/src/components/Form/People/RegisterPersonForm.tsx
+++ b/src/components/Form/People/RegisterPersonForm.tsx
@@ -39,13 +39,7 @@ const RegisterPersonForm: React.FC<props> = (props) => {
// TODO: show confirmation before being invisible
// TODO: Implement override protection
- axios.post(
- `/api/people/register/`
- + `?name=${newClient.Name}`
- + `&phone=${newClient.Phone}`
- + `&email=${newClient.Email}`
- + `&address=${newClient.Address}`
- )
+ axios.post("/api/people/register", newClient)
.then((res) => {
console.log(res);
props.updatePeopleList();
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 9cecfea..a82e4ad 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -19,6 +19,7 @@
}
* {
scrollbar-width: 1vw; /* Firefox */
+ transition: 0.3s;
}
body {