diff --git a/lib/src/Components/Input/InputLabel.tsx b/lib/src/Components/Input/InputLabel.tsx new file mode 100644 index 00000000..a8283b6b --- /dev/null +++ b/lib/src/Components/Input/InputLabel.tsx @@ -0,0 +1,9 @@ +export const InputLabel = ({ label }: { label: string }) => { + return ( + + ) +} diff --git a/lib/src/Components/Input/RichTextEditor.tsx b/lib/src/Components/Input/RichTextEditor.tsx index 268cbe04..539ad28b 100644 --- a/lib/src/Components/Input/RichTextEditor.tsx +++ b/lib/src/Components/Input/RichTextEditor.tsx @@ -10,6 +10,7 @@ import { StarterKit } from '@tiptap/starter-kit' import { useEffect } from 'react' import { Markdown } from 'tiptap-markdown' +import { InputLabel } from './InputLabel' import { TextEditorMenu } from './TextEditorMenu' interface RichTextEditorProps { @@ -27,7 +28,6 @@ interface RichTextEditorProps { */ export function RichTextEditor({ labelTitle, - labelStyle, containerStyle, defaultValue, placeholder, @@ -88,13 +88,7 @@ export function RichTextEditor({
- {labelTitle ? ( - - ) : null} + {labelTitle ? : null}
diff --git a/lib/src/Components/Input/TextAreaInput.tsx b/lib/src/Components/Input/TextAreaInput.tsx index 2ab53264..6a880b84 100644 --- a/lib/src/Components/Input/TextAreaInput.tsx +++ b/lib/src/Components/Input/TextAreaInput.tsx @@ -1,8 +1,9 @@ import { useEffect, useRef, useState } from 'react' +import { InputLabel } from './InputLabel' + interface TextAreaProps { labelTitle?: string - labelStyle?: string containerStyle?: string dataField?: string inputStyle?: string @@ -18,7 +19,6 @@ interface TextAreaProps { export function TextAreaInput({ labelTitle, dataField, - labelStyle, containerStyle, inputStyle, defaultValue, @@ -43,13 +43,7 @@ export function TextAreaInput({ return (
- {labelTitle ? ( - - ) : null} + {labelTitle ? : null}