diff --git a/src/ui/elements/forms/Checkbox.tsx b/src/ui/elements/forms/Checkbox.tsx index e7b58fb..bd8c2f1 100644 --- a/src/ui/elements/forms/Checkbox.tsx +++ b/src/ui/elements/forms/Checkbox.tsx @@ -1,17 +1,10 @@ -import { JSX, RefObject } from "preact"; import { InputProps } from "./InputProps"; +import { JSX, RefObject } from "preact"; type CheckboxProps = InputProps & { checkboxRef?: RefObject; -} +}; export function Checkbox(props: CheckboxProps): JSX.Element { - return ( - - ) -} \ No newline at end of file + return ; +} diff --git a/src/ui/elements/forms/InputProps.tsx b/src/ui/elements/forms/InputProps.tsx index fb1ce06..3951d08 100644 --- a/src/ui/elements/forms/InputProps.tsx +++ b/src/ui/elements/forms/InputProps.tsx @@ -1,9 +1,8 @@ export type InputProps = { - name?: string; - value?: string; - placeholder?: string; - onChange?: () => void; - required?: boolean; - checked?: boolean; - extraProps?: {}; -} \ No newline at end of file + name?: string; + value?: string; + placeholder?: string; + onChange?: () => void; + required?: boolean; + checked?: boolean; +}; diff --git a/src/ui/elements/forms/NumberInput.tsx b/src/ui/elements/forms/NumberInput.tsx index 4f6b7e0..ce08a7c 100644 --- a/src/ui/elements/forms/NumberInput.tsx +++ b/src/ui/elements/forms/NumberInput.tsx @@ -1,17 +1,12 @@ -import { JSX, RefObject } from "preact"; import { InputProps } from "./InputProps"; +import { JSX, RefObject } from "preact"; type NumberInputProps = InputProps & { inputRef?: RefObject; -} +}; export function NumberInput(props: NumberInputProps): JSX.Element { return ( - - ) -} \ No newline at end of file + + ); +} diff --git a/src/ui/elements/forms/PasswordInput.tsx b/src/ui/elements/forms/PasswordInput.tsx index 6c05276..c7741f2 100644 --- a/src/ui/elements/forms/PasswordInput.tsx +++ b/src/ui/elements/forms/PasswordInput.tsx @@ -1,17 +1,12 @@ -import { JSX, RefObject } from "preact"; import { InputProps } from "./InputProps"; +import { JSX, RefObject } from "preact"; type PasswordInputProps = InputProps & { inputRef?: RefObject; -} +}; export function PasswordInput(props: PasswordInputProps): JSX.Element { return ( - - ) -} \ No newline at end of file + + ); +} diff --git a/src/ui/elements/forms/Select.tsx b/src/ui/elements/forms/Select.tsx index 182d294..c5330a2 100644 --- a/src/ui/elements/forms/Select.tsx +++ b/src/ui/elements/forms/Select.tsx @@ -1,33 +1,29 @@ -import { JSX, RefObject } from "preact"; import { InputProps } from "./InputProps"; +import { JSX, RefObject } from "preact"; type SelectProps = InputProps & { selectRef?: RefObject; children?: JSX.Element | JSX.Element[]; -} +}; export function Select(props: SelectProps): JSX.Element { return ( - {props.children} - ) + ); } type SelectOptionProps = { name: string; value: string; selected?: boolean; -} +}; export function SelectOption(props: SelectOptionProps): JSX.Element { return ( - ) -} \ No newline at end of file + ); +} diff --git a/src/ui/elements/forms/TextArea.tsx b/src/ui/elements/forms/TextArea.tsx index 1627d32..cda3d1a 100644 --- a/src/ui/elements/forms/TextArea.tsx +++ b/src/ui/elements/forms/TextArea.tsx @@ -1,16 +1,12 @@ -import { JSX, RefObject } from "preact"; import { InputProps } from "./InputProps"; +import { JSX, RefObject } from "preact"; type TextInputProps = InputProps & { textAreaRef?: RefObject; -} +}; export function TextArea(props: TextInputProps): JSX.Element { return ( -