diff --git a/web/src/components/inputs/index.ts b/web/src/components/inputs/index.ts index c496939..2feb2e0 100644 --- a/web/src/components/inputs/index.ts +++ b/web/src/components/inputs/index.ts @@ -1,6 +1,6 @@ export { ErrorField, CheckboxField } from "./common"; export { TextField, NumberField, PasswordField } from "./input"; -export { NumberFieldWide, PasswordFieldWide, SwitchGroupWide, TextFieldWide } from "./input_wide"; +export { NumberFieldWide, PasswordFieldWide, SwitchGroupWide, SwitchGroupWideRed, TextFieldWide } from "./input_wide"; export { RadioFieldsetWide } from "./radio"; export { MultiSelect, Select, SelectWide, DownloadClientSelect, IndexerMultiSelect } from "./select"; export { SwitchGroup } from "./switch"; diff --git a/web/src/components/inputs/input_wide.tsx b/web/src/components/inputs/input_wide.tsx index f1f94e5..2d3254b 100644 --- a/web/src/components/inputs/input_wide.tsx +++ b/web/src/components/inputs/input_wide.tsx @@ -241,3 +241,65 @@ export const SwitchGroupWide = ({ ); +interface SwitchGroupWideRedProps { + name: string; + label: string; + description?: string; + defaultValue?: boolean; + className?: string; +} + +export const SwitchGroupWideRed = ({ + name, + label, + description, + defaultValue +}: SwitchGroupWideRedProps) => ( +