From df61746493be4e70ec633c5a1909bd18926ed4bd Mon Sep 17 00:00:00 2001 From: Lance Tan Date: Thu, 11 Apr 2024 17:54:49 -0700 Subject: [PATCH] Some design fixes --- backend/vehicle/helpers.py | 2 +- .../src/components/buttons/AddToListButton.jsx | 2 +- .../buttons/AwaitingApprovalButton.jsx | 2 +- .../src/components/buttons/LogInButton.jsx | 2 +- .../buttons/LogInJoinAuctionButton.jsx | 2 +- .../buttons/RegisterForAuctionButton.jsx | 2 +- .../components/buttons/StartBiddingButton.jsx | 4 ++-- .../src/components/buttons/ViewModelButton.jsx | 2 +- .../components/cards/CurrentAuctionCard.jsx | 4 +--- ...ngInputField.jsx => RegisterInputField.jsx} | 2 +- .../src/components/inputs/SignInInputField.jsx | 18 ++++++++++++++++++ frontend/src/components/navBars/NavBar.jsx | 8 ++++---- frontend/src/pages/ListingsPage.jsx | 7 +++---- frontend/src/pages/VehicleDetailsPage.jsx | 6 +++++- .../src/pages/auth/bidders/BidderLogInPage.jsx | 16 ++++++++-------- .../pages/auth/bidders/BidderRegisterPage.jsx | 18 +++++++++--------- .../pages/auth/bidders/ForgotPasswordPage.jsx | 8 ++++---- 17 files changed, 62 insertions(+), 43 deletions(-) rename frontend/src/components/inputs/{OnboardingInputField.jsx => RegisterInputField.jsx} (89%) create mode 100644 frontend/src/components/inputs/SignInInputField.jsx diff --git a/backend/vehicle/helpers.py b/backend/vehicle/helpers.py index 37107b4..c240841 100644 --- a/backend/vehicle/helpers.py +++ b/backend/vehicle/helpers.py @@ -50,7 +50,7 @@ def parse_excel_to_vehicle(excel_file): if brand is None or type is None: continue vehicle, created = Vehicle.objects.get_or_create( - brand=brand, vehicle_type=type, **vehicle_data + brand=brand, type=type, **vehicle_data ) vehicles.append(vehicle) diff --git a/frontend/src/components/buttons/AddToListButton.jsx b/frontend/src/components/buttons/AddToListButton.jsx index 26255d6..1e24a8b 100644 --- a/frontend/src/components/buttons/AddToListButton.jsx +++ b/frontend/src/components/buttons/AddToListButton.jsx @@ -6,7 +6,7 @@ export default function AddToListButton({ onClick, size = 'sm' }) { ); } diff --git a/frontend/src/components/buttons/ViewModelButton.jsx b/frontend/src/components/buttons/ViewModelButton.jsx index ad4be14..28d324c 100644 --- a/frontend/src/components/buttons/ViewModelButton.jsx +++ b/frontend/src/components/buttons/ViewModelButton.jsx @@ -14,7 +14,7 @@ export default function ViewModelButton({ onClick, size = 'sm' }) { return (