Compare commits

..

No commits in common. '20e20753523d13bcf6161d5c1a7c8dea251e4038' and '8740feb2b62f958cd16c4c789f64d255852c88c4' have entirely different histories.

@ -9,7 +9,7 @@ type Props = {
}
export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => {
placeholder ??= 'Scrivi qualcosa in markdown e latex...'
placeholder ??= 'Scrivi qualcosa...'
const editorRef = useRef<HTMLTextAreaElement>(null)
@ -41,7 +41,7 @@ export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => {
<div class="preview">
<div class="label">Preview</div>
<div class="preview-content">
{source.trim().length ? <Markdown source={source} /> : <div class="placeholder">Qui comparirà la preview di ciò che scrivi...</div>}
{source.trim().length ? <Markdown source={source} /> : <div class="placeholder">{placeholder}</div>}
</div>
</div>
</div>

@ -49,7 +49,7 @@ const CreateProblem = ({}) => {
</div>
<div class="col">
<label>Testo</label>
<MarkdownEditor placeholder="Scrivi un nuovo problema in markdown e latex..." {...{ source, setSource }} />
<MarkdownEditor placeholder="Scrivi un nuovo problema..." {...{ source, setSource }} />
</div>
<button onClick={handleCreateProblem}>Aggiungi Problema</button>
</div>

@ -117,7 +117,7 @@ export const ProblemPage = ({ id }: RouteProps) => {
/>
</div>
<MarkdownEditor
placeholder="Modifica testo del problema in markdown e latex..."
placeholder="Modifica testo del problema..."
source={modifiedProblemSource}
setSource={setModifiedProblemSource}
/>
@ -176,7 +176,7 @@ export const ProblemPage = ({ id }: RouteProps) => {
<>
<hr />
<div class="subtitle">Invia una soluzione al problema</div>
<MarkdownEditor placeholder="Scrivi una soluzione al problema in markdown e latex..." {...{ source, setSource }} />
<MarkdownEditor placeholder="Scrivi una soluzione al problema..." {...{ source, setSource }} />
<button onClick={sendSolution}>Invia Soluzione</button>
<p class="icon-text">
<span class="material-symbols-outlined">warning</span>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save