From 23eef7843cdd56125ec506005d81f1bdb4f55954 Mon Sep 17 00:00:00 2001 From: jeafreezy Date: Thu, 14 Nov 2024 14:02:03 +0000 Subject: [PATCH] chore: fixed typescript bugs --- frontend/src/components/map/map.tsx | 2 +- frontend/src/components/ui/form/input/input.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/map/map.tsx b/frontend/src/components/map/map.tsx index b727eded..cff71952 100644 --- a/frontend/src/components/map/map.tsx +++ b/frontend/src/components/map/map.tsx @@ -24,7 +24,7 @@ type MapComponentProps = { value: string; subLayer: string; }[]; - children: React.ReactNode + children?: React.ReactNode }; const MapComponent: React.FC = ({ diff --git a/frontend/src/components/ui/form/input/input.tsx b/frontend/src/components/ui/form/input/input.tsx index b426161c..ed05375c 100644 --- a/frontend/src/components/ui/form/input/input.tsx +++ b/frontend/src/components/ui/form/input/input.tsx @@ -89,7 +89,8 @@ const Input: React.FC = ({ // @ts-expect-error bad type definition ref={inputRef} label={label} - size={size ? size : isMobile ? "medium" : "large"} + // @ts-expect-error bad type definition + size={size ? size : isMobile ? SHOELACE_SIZES.MEDIUM : SHOELACE_SIZES.LARGE} minlength={minLength} maxlength={maxLength} // @ts-expect-error bad type definition