diff --git a/apps/frontend/src/utils/createInputComponents.tsx b/apps/frontend/src/utils/createInputComponents.tsx index 5fd39cc..54e7db8 100644 --- a/apps/frontend/src/utils/createInputComponents.tsx +++ b/apps/frontend/src/utils/createInputComponents.tsx @@ -5,6 +5,8 @@ import { NumberInputProps, PasswordInput, PasswordInputProps, + Select, + SelectProps, TextInput, TextInputProps, } from "@mantine/core"; @@ -30,6 +32,10 @@ type NumberInputType = { type: "number"; } & Omit; +type SelectType = { + type: "select"; +} & SelectProps; + interface Options { disableAll?: boolean; readonlyAll?: boolean; @@ -38,6 +44,7 @@ interface Options { | MultiSelectInputType | PasswordInputType | NumberInputType + | SelectType ) & GeneralInputProps)[]; } @@ -86,6 +93,14 @@ function createInputComponents(options: Options) { /> ); break; + case "select": + components.push( +