tasko-frontend/pages/components/ActiveTasks.js

29 lines
890 B
JavaScript
Raw Permalink Normal View History

2020-01-20 00:56:52 +01:00
import ActiveTask from "./ActiveTask"
2020-01-20 03:17:09 +01:00
const ActiveTasks = props => {
const isOwnTask = props.ownTasks === "ownTasks";
2020-01-20 00:56:52 +01:00
return (
<section className="task-description">
<div className="task-description">
2020-01-20 03:17:09 +01:00
{!isOwnTask &&
2020-01-20 00:56:52 +01:00
<div className="task-general-info">
<div>
<h2>Zadania</h2>
<h2>Aktywne: 100</h2>
{/* <p>Firmy: 100</p> */}
</div>
</div>
2020-01-20 03:17:09 +01:00
}
2020-01-20 00:56:52 +01:00
<div className="task-area">
2020-01-20 03:17:09 +01:00
<ActiveTask ownTask={isOwnTask && "ownTask"}/>
<ActiveTask ownTask={isOwnTask && "ownTask"}/>
<ActiveTask ownTask={isOwnTask && "ownTask"}/>
2020-01-20 00:56:52 +01:00
</div>
</div>
</section>
)
};
export default ActiveTasks;