From c908a544aa47802ac38e23eb6fa6ab9644efed7c Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Thu, 16 May 2024 13:32:11 +0100 Subject: [PATCH] Increase hit target for dropdown Add CartRecord type Remove OOP style Promises from Contact Add contact reason dropdown The usual SCSS changes and adjustments --- front/src/components/DropDown.svelte | 35 +++++++---- front/src/lib/cart.ts | 41 ++++++------- front/src/lib/test-api.ts | 2 + front/src/lib/types.ts | 2 + front/src/pages/Contact.svelte | 86 +++++++++++++++++++++++----- front/src/pages/Menu.svelte | 8 +++ front/src/styles/_form_element.scss | 2 +- 7 files changed, 125 insertions(+), 51 deletions(-) diff --git a/front/src/components/DropDown.svelte b/front/src/components/DropDown.svelte index 2ad8b56..811697f 100644 --- a/front/src/components/DropDown.svelte +++ b/front/src/components/DropDown.svelte @@ -6,12 +6,10 @@
- + +
+ +
+ +
+ +
+
+ + {#if !reasonValid} + You must provide a reason for contact + {/if} + +
+ +