source: client_app/src/components/template/header.js@ 504c3ef

Last change on this file since 504c3ef was 3f5bf9e, checked in by Vzdra <vladko.zdravkovski@…>, 4 years ago

added test login

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import React from 'react';
2import {Link} from "react-router-dom";
3import {Menu, MenuItem} from "semantic-ui-react";
4
5
6const HeaderComp = (props) => {
7 if(props.accType == null){
8 return(
9 <Menu inverted position="right">
10 <MenuItem as={Link} to='/login'>
11 Login
12 </MenuItem>
13 </Menu>
14 );
15 }else{
16 if(props.accType==="COMPANY"){
17 return(
18 <Menu inverted position="right">
19 <Menu.Item as={Link} to='/profile'>
20 Profile
21 </Menu.Item>
22 <Menu.Item as={Link} to='/jobs'>
23 Jobs
24 </Menu.Item>
25 <Menu.Item as={Link} to='/internships'>
26 Internships
27 </Menu.Item>
28 </Menu>
29 );
30 }else if(props.accType==="TEAM"){
31 return(
32 <Menu inverted position="right">
33 <Menu.Item as={Link} to='/login'>
34 Team
35 </Menu.Item>
36 </Menu>
37 );
38 }else if(props.accType==="USER"){
39 return(
40 <Menu inverted position="right">
41 <Menu.Item as={Link} to='/login'>
42 User
43 </Menu.Item>
44 </Menu>
45 );
46 }
47 }
48}
49
50export default HeaderComp;
Note: See TracBrowser for help on using the repository browser.