From aad5653f0b00ae9e6b676a4f73ae82b9ac1fa0eb Mon Sep 17 00:00:00 2001 From: kwongz Date: Wed, 8 Jan 2025 08:58:07 -0500 Subject: [PATCH] refactored DateRange to use DateInput instead of _DateInput --- .../atoms/inputs/date-input/DateInput.svelte | 2 +- .../atoms/inputs/date-range/DateRange.svelte | 104 +----------------- 2 files changed, 3 insertions(+), 103 deletions(-) diff --git a/packages/ui/core-components/src/lib/atoms/inputs/date-input/DateInput.svelte b/packages/ui/core-components/src/lib/atoms/inputs/date-input/DateInput.svelte index 774f581baa..2c9131bc70 100644 --- a/packages/ui/core-components/src/lib/atoms/inputs/date-input/DateInput.svelte +++ b/packages/ui/core-components/src/lib/atoms/inputs/date-input/DateInput.svelte @@ -63,7 +63,7 @@ let extraDayEndString; - $: if (endString) { + $: if (endString && range) { extraDayEndString = new Date(endString); extraDayEndString.setDate(extraDayEndString.getDate() + 1); extraDayEndString = formatDateString(extraDayEndString); diff --git a/packages/ui/core-components/src/lib/atoms/inputs/date-range/DateRange.svelte b/packages/ui/core-components/src/lib/atoms/inputs/date-range/DateRange.svelte index a6f1179fee..f56810e2f9 100644 --- a/packages/ui/core-components/src/lib/atoms/inputs/date-range/DateRange.svelte +++ b/packages/ui/core-components/src/lib/atoms/inputs/date-range/DateRange.svelte @@ -3,107 +3,7 @@ - -
- {#if title} - {title} - {/if} - - {#if $query?.error} - - error - - - {:else} - - - - - - - - {/if} -
-
+