diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-16 15:38:27 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-16 18:10:53 -0300 |
commit | 860e4216cdaf3e3bfb50ec1d9d285d34b6af5470 (patch) | |
tree | af1d393bfdf6bc36acf480165f3c0f6461accc7c /packages/aml-backoffice-ui/src/handlers | |
parent | 0ac2ddf4cb91af8e158af1f645ea50583f61b57d (diff) | |
download | wallet-core-860e4216cdaf3e3bfb50ec1d9d285d34b6af5470.tar.xz |
some fixes and examples
Diffstat (limited to 'packages/aml-backoffice-ui/src/handlers')
-rw-r--r-- | packages/aml-backoffice-ui/src/handlers/InputDate.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/aml-backoffice-ui/src/handlers/InputDate.tsx b/packages/aml-backoffice-ui/src/handlers/InputDate.tsx index 1fd81aad9..0f286e001 100644 --- a/packages/aml-backoffice-ui/src/handlers/InputDate.tsx +++ b/packages/aml-backoffice-ui/src/handlers/InputDate.tsx @@ -1,6 +1,5 @@ import { AbsoluteTime } from "@gnu-taler/taler-util"; import { InputLine, UIFormProps } from "./InputLine.js"; -import { CalendarIcon } from "@heroicons/react/24/outline"; import { VNode, h } from "preact"; import { format, parse } from "date-fns"; @@ -13,7 +12,11 @@ export function InputDate<T extends object, K extends keyof T>( type="text" after={{ type: "icon", - icon: <CalendarIcon class="h-6 w-6" />, + // icon: <CalendarIcon class="h-6 w-6" />, + icon: <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"> + <path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5" /> + </svg> + }} converter={{ //@ts-ignore @@ -27,8 +30,8 @@ export function InputDate<T extends object, K extends keyof T>( return !v || !v.t_ms ? "" : v.t_ms === "never" - ? "never" - : format(v.t_ms, pattern); + ? "never" + : format(v.t_ms, pattern); }, }} {...props} |