From 12aba6a67eda1277d99731a68a663f63253ff0c7 Mon Sep 17 00:00:00 2001 From: Anton Tranelis <31516529+antontranelis@users.noreply.github.com> Date: Fri, 4 Jul 2025 08:36:11 +0200 Subject: [PATCH] fix(lib): fix labels (#278) * fix labels * more lables * and the rest of the lables * updated snapshots * fix linting --- lib/src/Components/Input/InputLabel.tsx | 9 + lib/src/Components/Input/RichTextEditor.tsx | 10 +- lib/src/Components/Input/TextAreaInput.tsx | 12 +- lib/src/Components/Input/TextInput.tsx | 12 +- .../__snapshots__/TextAreaInput.spec.tsx.snap | 5 +- .../__snapshots__/TextInput.spec.tsx.snap | 5 +- lib/src/Components/Input/index.tsx | 2 + .../PopupStartEndInput.tsx | 4 - .../Profile/Subcomponents/ContactInfoForm.tsx | 16 +- .../Subcomponents/CrowdfundingForm.tsx | 9 +- .../Profile/Subcomponents/GalleryForm.tsx | 11 +- .../Subcomponents/GroupSubheaderForm.tsx | 15 +- .../Profile/Subcomponents/ProfileTextForm.tsx | 14 +- .../__snapshots__/GalleryForm.spec.tsx.snap | 408 ++++++++++-------- .../Components/Profile/Templates/TabsForm.tsx | 2 - 15 files changed, 268 insertions(+), 266 deletions(-) create mode 100644 lib/src/Components/Input/InputLabel.tsx 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({