2020-01-20 00:56:52 +01:00
|
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
2020-01-20 03:17:09 +01:00
|
|
|
import { faTasks, faPaperPlane } from '@fortawesome/free-solid-svg-icons';
|
|
|
|
|
|
|
|
const ActiveTask = props => {
|
|
|
|
const isOwnTask = props.ownTask === "ownTask";
|
2020-01-20 00:56:52 +01:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="active-task">
|
|
|
|
<div className="recent-task">
|
|
|
|
<span><FontAwesomeIcon icon={faTasks} /></span>
|
|
|
|
<span className="recent-task-description">
|
|
|
|
<span>Sortowanie bąbelkowe</span>
|
|
|
|
<span className="required-programming-languages">Dowolny język programowania</span>
|
|
|
|
</span>
|
|
|
|
<span><image src="/UAM-logo-siw-amu.jpg" alt="" /></span>
|
|
|
|
</div>
|
|
|
|
<div className="active-task-summary">
|
2020-01-20 03:17:09 +01:00
|
|
|
{isOwnTask ?
|
|
|
|
<span>
|
|
|
|
Autor rozwiązania: Jan Kowalski
|
|
|
|
</span>
|
|
|
|
:
|
2020-01-20 00:56:52 +01:00
|
|
|
<span>
|
|
|
|
Twoim zadaniem będzie posortowanie ciągu liczb całkowitych. Jednakże nie podajemy ograniczenia na liczbę elementów tego ciągu. Napisz program, który będzie fajny.
|
|
|
|
</span>
|
2020-01-20 03:17:09 +01:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
{isOwnTask &&
|
|
|
|
<div className="solution-add-message-bottom">
|
|
|
|
<button><FontAwesomeIcon icon={faPaperPlane} /> Wyślij wiadomość</button>
|
2020-01-20 00:56:52 +01:00
|
|
|
</div>
|
2020-01-20 03:17:09 +01:00
|
|
|
}
|
2020-01-20 00:56:52 +01:00
|
|
|
<div>
|
|
|
|
<span>1 godzinę temu</span>
|
|
|
|
<span>Zobacz <FontAwesomeIcon icon={faTasks} /> </span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ActiveTask;
|