2020-01-20 02:52:05 +01:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
|
import { faLightbulb, faCloudUploadAlt } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
|
2020-01-20 03:42:46 +01:00
|
|
|
const NewTaskAdd = props => {
|
|
|
|
const isNewSolution = props.addType === "solution";
|
|
|
|
|
2020-01-20 02:52:05 +01:00
|
|
|
return (
|
|
|
|
<section className="task-description">
|
|
|
|
<div className="task-description">
|
|
|
|
<div className="task-border">
|
|
|
|
<div className="task-description-heading">
|
|
|
|
<FontAwesomeIcon icon={faLightbulb} />
|
2020-01-20 03:42:46 +01:00
|
|
|
<span>Dodawanie {isNewSolution ? "rozwiązania" : "zadania"}</span>
|
2020-01-20 02:52:05 +01:00
|
|
|
</div>
|
|
|
|
<form className="solution-add-area">
|
2020-01-20 03:42:46 +01:00
|
|
|
{isNewSolution ?
|
|
|
|
<div className="input-area">
|
|
|
|
<input type="file" placeholder="Załaduj rozwiązanie"/>
|
|
|
|
</div>
|
|
|
|
:
|
2020-01-20 02:52:05 +01:00
|
|
|
<div className="input-area">
|
|
|
|
<input type="text" placeholder="Podaj streszczenie zadania"/>
|
|
|
|
<input type="text" placeholder="Wybierz język programowania"/>
|
|
|
|
<input type="text" placeholder="Podaj szczegóły zadania"/>
|
|
|
|
</div>
|
2020-01-20 03:42:46 +01:00
|
|
|
}
|
2020-01-20 02:52:05 +01:00
|
|
|
<div>
|
|
|
|
<button type="submit"><FontAwesomeIcon icon={faCloudUploadAlt} /> Publikuj</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
|
|
|
export default NewTaskAdd;
|