diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 0367e11..d38c1da 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -12,6 +12,7 @@ type Props = { error_text?: string, placeholder?: string, label?: string, + readOnly?: boolean, } & SelectHTMLAttributes const Select: FC = (props: Props) => { @@ -25,6 +26,7 @@ const Select: FC = (props: Props) => { } { props.error_text && props.error_text !== '' ? diff --git a/src/components/Tabs.tsx b/src/components/Tabs.tsx index aac29f6..e52f78a 100644 --- a/src/components/Tabs.tsx +++ b/src/components/Tabs.tsx @@ -32,7 +32,7 @@ const Tabs: FC = (props: Props) => { props.onChange(item.value)} key={item.value} className={clx( 'flex flex-col max-w-fit mt-[15px] items-center gap-2 cursor-pointer', index === 0 && 'pr-[30px]', - index === props.items.length - 1 && 'pl-[30px]', + index === props.items.length - 1 && props.items.length > 3 && 'pl-[30px]', props.active === item.value && 'text-black' )}> {item.icon} diff --git a/src/components/Textarea.tsx b/src/components/Textarea.tsx index 360dfec..18831eb 100644 --- a/src/components/Textarea.tsx +++ b/src/components/Textarea.tsx @@ -1,5 +1,6 @@ import { FC, InputHTMLAttributes } from 'react' import Error from './Error' +import { clx } from '../helpers/utils' type Props = { label: string, @@ -14,7 +15,11 @@ const Textarea: FC = (props: Props) => {