rename textarea to use kebab case
This commit is contained in:
parent
ac3e10a0a4
commit
6ba41f4345
1
libs/ui-toolkit/src/components/text-area/index.ts
Normal file
1
libs/ui-toolkit/src/components/text-area/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './text-area';
|
@ -1,6 +1,6 @@
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import { TextArea } from './textArea';
|
||||
import { TextArea } from './text-area';
|
||||
|
||||
describe('TextArea', () => {
|
||||
it('should render successfully', () => {
|
@ -1,5 +1,5 @@
|
||||
import { Story, Meta } from '@storybook/react';
|
||||
import { TextArea } from './textArea';
|
||||
import { TextArea } from './text-area';
|
||||
|
||||
export default {
|
||||
component: TextArea,
|
@ -1,13 +1,13 @@
|
||||
import { TextareaHTMLAttributes, forwardRef } from 'react';
|
||||
import { inputClassNames } from '../input/input';
|
||||
|
||||
/* eslint-disable-next-line */
|
||||
export interface TextAreaProps
|
||||
extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
||||
hasError?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export const TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(
|
||||
(props, ref) => <textarea {...props} className={inputClassNames(props)} />
|
||||
(props, ref) => (
|
||||
<textarea {...props} ref={ref} className={inputClassNames(props)} />
|
||||
)
|
||||
);
|
@ -1 +0,0 @@
|
||||
export * from './textArea';
|
@ -8,4 +8,4 @@ export { Icon } from './components/icon';
|
||||
export { Input } from './components/input';
|
||||
export { InputError } from './components/inputError';
|
||||
export { Select } from './components/select';
|
||||
export { TextArea } from './components/textArea';
|
||||
export { TextArea } from './components/text-area';
|
||||
|
Loading…
Reference in New Issue
Block a user