tasko-frontend/pages/components/Sidebar.js

31 lines
915 B
JavaScript
Raw Permalink Normal View History

2020-01-20 17:06:22 +01:00
import React, { useState } from 'react';
2020-01-18 20:37:36 +01:00
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faSearch } from '@fortawesome/free-solid-svg-icons';
import RecentTask from './RecentTask';
const Sidebar = () => {
2020-01-20 17:06:22 +01:00
const [recentTasks, setRecentTasks] = useState([]);
const handleSearch = e => {
const searchPhrase = e.target.value;
}
2020-01-18 20:37:36 +01:00
return (
<section className="sidebar">
2020-01-19 20:09:02 +01:00
<div className="search-area">
2020-01-18 20:37:36 +01:00
<FontAwesomeIcon icon={faSearch} />
2020-01-20 17:06:22 +01:00
<input type="text" placeholder="Wyszukaj" onChange={handleSearch}/>
2020-01-18 20:37:36 +01:00
</div>
2020-01-19 20:09:02 +01:00
<div className="recent-task-list">
<div>Ostatnie zadania</div>
<ul>
<li><RecentTask /></li>
<li><RecentTask /></li>
</ul>
2020-01-18 20:37:36 +01:00
</div>
</section>
)
}
export default Sidebar;