all: Aggiunte varie feature e riscritte svariate cose
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user