diff --git a/app/components/Input.tsx b/app/components/Input.tsx index f91fc05864..a8ce2232f9 100644 --- a/app/components/Input.tsx +++ b/app/components/Input.tsx @@ -1,8 +1,7 @@ import { twMerge } from "tailwind-merge"; import { IconDefinition } from "@fortawesome/pro-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; - -import { Label } from "."; +import { Label } from "./Typography"; interface InputProps extends React.InputHTMLAttributes { label?: string; diff --git a/app/components/ItemPicker.tsx b/app/components/ItemPicker.tsx index 8e80dd2742..905f757cea 100644 --- a/app/components/ItemPicker.tsx +++ b/app/components/ItemPicker.tsx @@ -1,32 +1,38 @@ import { twMerge } from "tailwind-merge"; import { H4 } from "."; - +import { ArtStyle } from "~/pages/PageEnigma/js/api_manager"; interface ItemPickerProps extends React.ImgHTMLAttributes { - label: string + label: string; + type: ArtStyle; selected: boolean; - onSelected : (val:string)=>void; + onSelected: (picked: ArtStyle) => void; } export const ItemPicker = ({ label, + type, selected = false, onSelected, ...imgProps -}:ItemPickerProps) => { - - const handleSelected = ()=>{ - onSelected(label); +}: ItemPickerProps) => { + const handleSelected = () => { + onSelected(type); }; return ( -
- -
-

{label}

-
- ) -} \ No newline at end of file + style +
+

+ {label} +

+ + ); +}; diff --git a/app/components/Textarea.tsx b/app/components/Textarea.tsx index 3b069b39ee..4d85c98782 100644 --- a/app/components/Textarea.tsx +++ b/app/components/Textarea.tsx @@ -1,24 +1,42 @@ -import { TextareaHTMLAttributes } from "react" +import { TextareaHTMLAttributes } from "react"; import { twMerge } from "tailwind-merge"; +import { Label } from "./Typography"; + +type ResizeType = + | "none" + | "both" + | "horizontal" + | "vertical" + | "block" + | "inline" + | undefined; export const Textarea = ({ className, + label, + resize = "vertical", ...rest -}:TextareaHTMLAttributes) => { - return( -