1
1
import React from 'react' ;
2
2
3
- import { BellOutlined , GlobalOutlined , ReadOutlined , SettingOutlined , GroupOutlined , TeamOutlined } from '@ant-design/icons' ;
3
+ import {
4
+ BellOutlined ,
5
+ GlobalOutlined ,
6
+ GroupOutlined ,
7
+ ReadOutlined ,
8
+ SettingOutlined ,
9
+ TeamOutlined ,
10
+ } from '@ant-design/icons' ;
4
11
import OrgGroupsLink from 'components/link/Organizations/Groups' ;
5
12
import OrgManageLink from 'components/link/Organizations/Manage' ;
6
13
import OrgNotificationsLink from 'components/link/Organizations/Notifications' ;
@@ -10,46 +17,48 @@ import OrgUsersLink from 'components/link/Organizations/Users';
10
17
11
18
import { StyledNavigation } from './StyledNavTabs' ;
12
19
13
- const OrgNavTabs = ( { activeTab, organization } ) => (
14
- < StyledNavigation >
15
- < li className = { `overview ${ activeTab == 'overview' ? 'active' : '' } linkContainer` } >
16
- < OrganizationLink organizationName = { organization . name } organizationSlug = { organization . id } className = "navLink" >
17
- < ReadOutlined className = "icon" />
18
- < span className = "destination" > Organization Overview</ span >
19
- </ OrganizationLink >
20
- </ li >
21
- < li className = { `groups ${ activeTab == 'groups' ? 'active' : '' } linkContainer` } >
22
- < OrgGroupsLink organizationSlug = { organization . id } organizationName = { organization . name } className = "navLink" >
23
- < GroupOutlined className = "icon" />
24
- < span className = "destination" > Groups</ span >
25
- </ OrgGroupsLink >
26
- </ li >
27
- < li className = { `users ${ activeTab == 'users' ? 'active' : '' } linkContainer` } >
28
- < OrgUsersLink organizationSlug = { organization . id } organizationName = { organization . name } className = "navLink" >
29
- < TeamOutlined className = "icon" />
30
- < span className = "destination" > Users</ span >
31
- </ OrgUsersLink >
32
- </ li >
33
- < li className = { `projects ${ activeTab == 'projects' ? 'active' : '' } linkContainer` } >
34
- < OrgProjectsLink organizationSlug = { organization . id } organizationName = { organization . name } className = "navLink" >
35
- < GlobalOutlined className = "icon" />
36
- < span className = "destination" > Projects</ span >
37
- </ OrgProjectsLink >
38
- </ li >
39
- < li className = { `notifications ${ activeTab == 'notifications' ? 'active' : '' } linkContainer` } >
40
- < OrgNotificationsLink organizationSlug = { organization . id } organizationName = { organization . name } className = "navLink" >
41
- < BellOutlined className = "icon" />
42
- < span className = "destination" > Notifications</ span >
43
- </ OrgNotificationsLink >
44
- </ li >
20
+ const OrgNavTabs = ( { activeTab, organization } ) => {
21
+ return (
22
+ < StyledNavigation >
23
+ < li className = { `overview ${ activeTab == 'overview' ? 'active' : '' } linkContainer` } >
24
+ < OrganizationLink organizationSlug = { organization . name } organizationId = { organization . id } className = "navLink" >
25
+ < ReadOutlined className = "icon" />
26
+ < span className = "destination" > Organization Overview</ span >
27
+ </ OrganizationLink >
28
+ </ li >
29
+ < li className = { `groups ${ activeTab == 'groups' ? 'active' : '' } linkContainer` } >
30
+ < OrgGroupsLink organizationSlug = { organization . name } organizationId = { organization . id } className = "navLink" >
31
+ < GroupOutlined className = "icon" />
32
+ < span className = "destination" > Groups</ span >
33
+ </ OrgGroupsLink >
34
+ </ li >
35
+ < li className = { `users ${ activeTab == 'users' ? 'active' : '' } linkContainer` } >
36
+ < OrgUsersLink organizationSlug = { organization . name } organizationId = { organization . id } className = "navLink" >
37
+ < TeamOutlined className = "icon" />
38
+ < span className = "destination" > Users</ span >
39
+ </ OrgUsersLink >
40
+ </ li >
41
+ < li className = { `projects ${ activeTab == 'projects' ? 'active' : '' } linkContainer` } >
42
+ < OrgProjectsLink organizationSlug = { organization . name } organizationId = { organization . id } className = "navLink" >
43
+ < GlobalOutlined className = "icon" />
44
+ < span className = "destination" > Projects</ span >
45
+ </ OrgProjectsLink >
46
+ </ li >
47
+ < li className = { `notifications ${ activeTab == 'notifications' ? 'active' : '' } linkContainer` } >
48
+ < OrgNotificationsLink organizationSlug = { organization . name } organizationId = { organization . id } className = "navLink" >
49
+ < BellOutlined className = "icon" />
50
+ < span className = "destination" > Notifications</ span >
51
+ </ OrgNotificationsLink >
52
+ </ li >
45
53
46
- < li className = { `manage ${ activeTab == 'manage' ? 'active' : '' } linkContainer` } >
47
- < OrgManageLink organizationSlug = { organization . id } organizationName = { organization . name } className = "navLink" >
48
- < SettingOutlined className = "icon" />
49
- < span className = "destination" > Manage</ span >
50
- </ OrgManageLink >
51
- </ li >
52
- </ StyledNavigation >
53
- ) ;
54
+ < li className = { `manage ${ activeTab == 'manage' ? 'active' : '' } linkContainer` } >
55
+ < OrgManageLink organizationSlug = { organization . name } organizationId = { organization . id } className = "navLink" >
56
+ < SettingOutlined className = "icon" />
57
+ < span className = "destination" > Manage</ span >
58
+ </ OrgManageLink >
59
+ </ li >
60
+ </ StyledNavigation >
61
+ ) ;
62
+ } ;
54
63
55
64
export default OrgNavTabs ;
0 commit comments