From ca74b48be99ee98a1a6366b303947e23931e980e Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Mon, 7 Mar 2022 12:55:55 -0800 Subject: [PATCH] fix incorrect type used for select attributes --- libs/ui-toolkit/src/components/select/select.tsx | 9 ++++++--- libs/ui-toolkit/src/components/text-area/text-area.tsx | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/ui-toolkit/src/components/select/select.tsx b/libs/ui-toolkit/src/components/select/select.tsx index 6e0da86a7..189b2e9c7 100644 --- a/libs/ui-toolkit/src/components/select/select.tsx +++ b/libs/ui-toolkit/src/components/select/select.tsx @@ -2,7 +2,6 @@ import { SelectHTMLAttributes, forwardRef } from 'react'; import classNames from 'classnames'; import { inputClassNames } from '../input/input'; -/* eslint-disable-next-line */ export interface SelectProps extends SelectHTMLAttributes { hasError?: boolean; className?: string; @@ -10,8 +9,12 @@ export interface SelectProps extends SelectHTMLAttributes { children?: React.ReactNode; } -export const Select = forwardRef( +export const Select = forwardRef( (props, ref) => ( - ) ); diff --git a/libs/ui-toolkit/src/components/text-area/text-area.tsx b/libs/ui-toolkit/src/components/text-area/text-area.tsx index 6ffca2437..a58afaf01 100644 --- a/libs/ui-toolkit/src/components/text-area/text-area.tsx +++ b/libs/ui-toolkit/src/components/text-area/text-area.tsx @@ -3,6 +3,7 @@ import { inputClassNames } from '../input/input'; export interface TextAreaProps extends TextareaHTMLAttributes { + hassError?: boolean; className?: string; }