Changeset 2e507a8 for client_app/src/components/template
- Timestamp:
- 01/12/21 21:10:56 (4 years ago)
- Branches:
- master
- Children:
- 47067ae
- Parents:
- a70db1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client_app/src/components/template/header.js
ra70db1a r2e507a8 1 1 import React from 'react'; 2 2 import {Link} from "react-router-dom"; 3 import {Menu, MenuItem } from "semantic-ui-react";3 import {Menu, MenuItem } from "semantic-ui-react"; 4 4 5 5 … … 7 7 if(props.accType == null){ 8 8 return( 9 <Menu inverted position="right"> 10 <MenuItem as={Link} to='/login'> 9 <Menu inverted> 10 <MenuItem as={Link} to='/register/user'> 11 Register User 12 </MenuItem> 13 <MenuItem as={Link} to='/register/company'> 14 Register Company 15 </MenuItem> 16 <MenuItem as={Link} to='/register/team'> 17 Register Team 18 </MenuItem> 19 <MenuItem position="right" as={Link} to='/login'> 11 20 Login 12 21 </MenuItem> … … 16 25 if(props.accType==="COMPANY"){ 17 26 return( 18 <Menu inverted position="right">27 <Menu inverted> 19 28 <Menu.Item as={Link} to='/profile'> 20 29 Profile 21 30 </Menu.Item> 22 <Menu.Item as={Link} to='/ jobs'>31 <Menu.Item as={Link} to='/company/jobs'> 23 32 Jobs 24 33 </Menu.Item> 25 <Menu.Item as={Link} to='/ internships'>34 <Menu.Item as={Link} to='/company/internships'> 26 35 Internships 27 36 </Menu.Item> 37 <MenuItem onClick={props.removeState} position="right" as={Link} to='/logout'> 38 Logout 39 </MenuItem> 28 40 </Menu> 29 41 ); 30 42 }else if(props.accType==="TEAM"){ 31 43 return( 32 <Menu inverted position="right">33 <Menu.Item as={Link} to='/profile'>44 <Menu inverted> 45 <Menu.Item position="right" as={Link} to='/profile'> 34 46 Profile 35 47 </Menu.Item> 36 <Menu.Item as={Link} to='/ jobs'>48 <Menu.Item as={Link} to='/team/jobs'> 37 49 Jobs 38 50 </Menu.Item> 39 <Menu.Item as={Link} to='/ projects'>51 <Menu.Item as={Link} to='/team/projects'> 40 52 Projects 41 53 </Menu.Item> 54 <MenuItem onClick={props.removeState} position="right" as={Link} to='/logout'> 55 Logout 56 </MenuItem> 42 57 </Menu> 43 58 ); 44 59 }else if(props.accType==="USER"){ 45 60 return( 46 <Menu inverted position="right">61 <Menu inverted> 47 62 <Menu.Item as={Link} to='/profile'> 48 63 Profile 49 64 </Menu.Item> 50 <Menu.Item as={Link} to='/ jobs'>65 <Menu.Item as={Link} to='/user/jobs'> 51 66 Jobs 52 67 </Menu.Item> 53 <Menu.Item as={Link} to='/ internships'>68 <Menu.Item as={Link} to='/user/internships'> 54 69 Internships 55 70 </Menu.Item> 56 <Menu.Item as={Link} to='/ projects'>71 <Menu.Item as={Link} to='/user/projects'> 57 72 Projects 58 73 </Menu.Item> 59 <Menu.Item as={Link} to='/ search'>74 <Menu.Item as={Link} to='/user/search'> 60 75 Search 61 76 </Menu.Item> 77 <MenuItem onClick={props.removeState} position="right" as={Link} to='/logout'> 78 Logout 79 </MenuItem> 62 80 </Menu> 63 81 );
Note:
See TracChangeset
for help on using the changeset viewer.