Skip to content

Commit

Permalink
chore: fixed typescript bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeafreezy committed Nov 14, 2024
1 parent aaea0db commit 23eef78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/map/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type MapComponentProps = {
value: string;
subLayer: string;
}[];
children: React.ReactNode
children?: React.ReactNode
};

const MapComponent: React.FC<MapComponentProps> = ({
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/ui/form/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ const Input: React.FC<InputProps> = ({
// @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
Expand Down

0 comments on commit 23eef78

Please sign in to comment.