all: Aggiunte varie feature e riscritte svariate cose

This commit is contained in:
2022-12-01 03:45:29 +01:00
parent bd055f484d
commit 8fdef2981d
22 changed files with 714 additions and 422 deletions
+4 -2
View File
@@ -1,18 +1,20 @@
import { Problem as ProblemModel } from '../../shared/model'
import { prependBaseUrl } from '../api'
import { Markdown } from './Markdown'
type Props = {
id: string
title: string
content: string
solutionsCount?: number
}
export const Problem = ({ id, content, solutionsCount }: Props) => {
export const Problem = ({ id, title, content, solutionsCount }: Props) => {
return (
<div class="problem">
<div class="problem-header">
<div class="problem-title">
<a href={prependBaseUrl(`/problem/${id}`)}>Problema {id}</a>
<a href={prependBaseUrl(`/problem/${id}`)}>{title}</a>
</div>
</div>
<div class="problem-content">