Last change
on this file since 8f1f460 was 6f9b7b0, checked in by i-ina <76742075+i-ina@…>, 4 years ago |
user login
|
-
Property mode
set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 | import React from 'react';
|
---|
2 | import {Link} from "react-router-dom";
|
---|
3 | import {Menu, MenuItem} from "semantic-ui-react";
|
---|
4 |
|
---|
5 |
|
---|
6 | const 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='/profile'>
|
---|
34 | Profile
|
---|
35 | </Menu.Item>
|
---|
36 | <Menu.Item as={Link} to='/jobs'>
|
---|
37 | Jobs
|
---|
38 | </Menu.Item>
|
---|
39 | <Menu.Item as={Link} to='/projects'>
|
---|
40 | Projects
|
---|
41 | </Menu.Item>
|
---|
42 | </Menu>
|
---|
43 | );
|
---|
44 | }else if(props.accType==="USER"){
|
---|
45 | return(
|
---|
46 | <Menu inverted position="right">
|
---|
47 | <Menu.Item as={Link} to='/profile'>
|
---|
48 | Profile
|
---|
49 | </Menu.Item>
|
---|
50 | <Menu.Item as={Link} to='/jobs'>
|
---|
51 | Jobs
|
---|
52 | </Menu.Item>
|
---|
53 | <Menu.Item as={Link} to='/internships'>
|
---|
54 | Internships
|
---|
55 | </Menu.Item>
|
---|
56 | <Menu.Item as={Link} to='/projects'>
|
---|
57 | Projects
|
---|
58 | </Menu.Item>
|
---|
59 | <Menu.Item as={Link} to='/search'>
|
---|
60 | Search
|
---|
61 | </Menu.Item>
|
---|
62 | </Menu>
|
---|
63 | );
|
---|
64 | }
|
---|
65 | }
|
---|
66 | }
|
---|
67 |
|
---|
68 | export default HeaderComp; |
---|
Note:
See
TracBrowser
for help on using the repository browser.