tasko-frontend/pages/components/Profile.js

35 lines
1.5 KiB
JavaScript
Raw Permalink Normal View History

2020-01-20 13:11:45 +01:00
import Link from 'next/link';
2020-01-20 12:33:29 +01:00
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faTasks, faCloud, faSearch } from '@fortawesome/free-solid-svg-icons';
const Profile = props => {
2020-01-20 13:11:45 +01:00
const isDeveloperAccount = props.accountType === "developer"
2020-01-20 12:33:29 +01:00
return (
<section className="task-description">
<div className="task-description">
<div className="task-area">
2020-01-20 13:11:45 +01:00
<Link href="/active-tasks">
<div className="profile-action"><span><FontAwesomeIcon icon={faSearch} /></span><span>Przeglądaj zadania</span></div>
</Link>
{!isDeveloperAccount &&
<Link href="/new-task-add">
<div className="profile-action"><span><FontAwesomeIcon icon={faTasks} /></span><span>Dodaj zadanie</span></div>
</Link>
}
<Link href="/added-tasks">
<div className="profile-action"><span><FontAwesomeIcon icon={faSearch} /></span><span>Zobacz rozwiązania</span></div>
</Link>
{!isDeveloperAccount &&
<Link href="/added-tasks">
<div className="profile-action"><span><FontAwesomeIcon icon={faSearch} /></span><span>Zobacz wstawione zadania</span></div>
</Link>
}
2020-01-20 12:33:29 +01:00
</div>
</div>
</section>
)
};
export default Profile;