mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-03-14 00:32:59 +00:00
small fixes for tools
This commit is contained in:
@@ -12,12 +12,14 @@
|
||||
disabled = false,
|
||||
locale,
|
||||
class: className = '',
|
||||
onchange = () => {},
|
||||
}: {
|
||||
value?: DateValue;
|
||||
placeholder?: string;
|
||||
disabled?: boolean;
|
||||
locale: string;
|
||||
class?: string;
|
||||
onchange?: (date: DateValue | undefined) => void;
|
||||
} = $props();
|
||||
|
||||
const df = new DateFormatter(locale, {
|
||||
@@ -43,6 +45,6 @@
|
||||
{value ? df.format(value.toDate(getLocalTimeZone())) : placeholder}
|
||||
</Popover.Trigger>
|
||||
<Popover.Content bind:ref={contentRef} class="w-auto p-0">
|
||||
<Calendar type="single" captionLayout="dropdown" bind:value />
|
||||
<Calendar type="single" captionLayout="dropdown" bind:value onValueChange={onchange} />
|
||||
</Popover.Content>
|
||||
</Popover.Root>
|
||||
|
||||
Reference in New Issue
Block a user