From b7c4a9da4dc8ab3b14790c526bca48fe1c2d3b08 Mon Sep 17 00:00:00 2001 From: Bohdan Chornokondratenko Date: Sat, 11 Jan 2025 23:15:53 +0100 Subject: [PATCH 1/2] feat(app): add a prompt for the reason to take an extra --- src/components/ui/Input.tsx | 24 +++- src/components/ui/popovers/Dialog.tsx | 3 + .../components/CurrentSolve.tsx | 105 ++++++++++++++++-- 3 files changed, 120 insertions(+), 12 deletions(-) diff --git a/src/components/ui/Input.tsx b/src/components/ui/Input.tsx index 1961a8ab..469af688 100644 --- a/src/components/ui/Input.tsx +++ b/src/components/ui/Input.tsx @@ -5,10 +5,9 @@ export type InputProps = ComponentProps<'input'> & { error?: boolean } -const Input = forwardRef(({ className, type = 'text', error = false, ...props }, ref) => { +const Input = forwardRef(({ className, error = false, ...props }, ref) => { return ( (({ className, type = 'tex }) Input.displayName = 'Input' -export { Input } +export type TextAreaProps = ComponentProps<'textarea'> & { + error?: boolean +} + +const TextArea = forwardRef(({ className, error = false, ...props }, ref) => { + return ( +