From 20e20753523d13bcf6161d5c1a7c8dea251e4038 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 8 Feb 2024 17:08:42 +0100 Subject: [PATCH] fix: updated placeholders of markdown+latex editors --- client/components/MarkdownEditor.tsx | 4 ++-- client/pages/AdminPage.tsx | 2 +- client/pages/ProblemPage.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/components/MarkdownEditor.tsx b/client/components/MarkdownEditor.tsx index 337514e..f3e7a64 100644 --- a/client/components/MarkdownEditor.tsx +++ b/client/components/MarkdownEditor.tsx @@ -9,7 +9,7 @@ type Props = { } export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => { - placeholder ??= 'Scrivi qualcosa...' + placeholder ??= 'Scrivi qualcosa in markdown e latex...' const editorRef = useRef(null) @@ -41,7 +41,7 @@ export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => {
Preview
- {source.trim().length ? :
{placeholder}
} + {source.trim().length ? :
Qui comparirà la preview di ciò che scrivi...
}
diff --git a/client/pages/AdminPage.tsx b/client/pages/AdminPage.tsx index 87f3661..a9b472b 100644 --- a/client/pages/AdminPage.tsx +++ b/client/pages/AdminPage.tsx @@ -49,7 +49,7 @@ const CreateProblem = ({}) => {
- +
diff --git a/client/pages/ProblemPage.tsx b/client/pages/ProblemPage.tsx index 8d3b457..c3da675 100644 --- a/client/pages/ProblemPage.tsx +++ b/client/pages/ProblemPage.tsx @@ -117,7 +117,7 @@ export const ProblemPage = ({ id }: RouteProps) => { /> @@ -176,7 +176,7 @@ export const ProblemPage = ({ id }: RouteProps) => { <>
Invia una soluzione al problema
- +

warning