generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix/167 bc header refactoring (#178)
* fix: refactor BC header component * fix: stick support section to the bottom of the side menu * fix: create disable style for unused menu entries * fix: change hover style for disabled menu options * fix: remove duplicated css properties * fix: update conditional render, now using ternary operator
- Loading branch information
1 parent
3ebefc0
commit 58dec22
Showing
5 changed files
with
304 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
import { env } from '../../env'; | ||
|
||
export const VERSION: string = `Version: ${env.REACT_APP_NRSPARWEBAPP_VERSION}`; | ||
|
||
export const HOME_LINK = '/dashboard'; | ||
|
||
export const clearPanelState = { | ||
notifications: false, | ||
myProfile: false | ||
}; | ||
|
||
export const listItems = [ | ||
{ | ||
name: 'Main activities', | ||
items: [ | ||
{ | ||
name: 'Dashboard', | ||
icon: 'Dashboard', | ||
link: '/dashboard', | ||
disabled: false | ||
}, | ||
{ | ||
name: 'Seedlots', | ||
icon: 'SoilMoistureField', | ||
link: '/seedlot', | ||
disabled: false | ||
}, | ||
{ | ||
name: 'Seedlings', | ||
icon: 'CropGrowth', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Nurseries', | ||
icon: 'CropHealth', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Orchards', | ||
icon: 'MapBoundaryVegetation', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Reports', | ||
icon: 'Report', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Tests', | ||
icon: 'Chemistry', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Parent tree', | ||
icon: 'Tree', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Tree seed center', | ||
icon: 'Enterprise', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Financial', | ||
icon: 'Money', | ||
link: '#', | ||
disabled: true | ||
} | ||
] | ||
}, | ||
{ | ||
name: 'Management', | ||
items: [ | ||
{ | ||
name: 'Notifications', | ||
icon: 'Notification', | ||
link: '#', | ||
disabled: true | ||
}, | ||
{ | ||
name: 'Settings', | ||
icon: 'Settings', | ||
link: '#', | ||
disabled: true | ||
} | ||
] | ||
}, | ||
{ | ||
name: 'Support', | ||
items: [ | ||
{ | ||
name: 'Need help?', | ||
icon: 'Help', | ||
link: '#', | ||
disabled: true | ||
} | ||
] | ||
} | ||
]; | ||
|
||
export const componentTexts = { | ||
headerTitle: 'SPAR', | ||
completeTitle: ' Seed Planning and Registry System', | ||
openMenu: 'Open menu', | ||
sideMenuAriaLabel: 'Side menu', | ||
searchAriaLabel: 'Search', | ||
notifications: { | ||
title: 'Notifications', | ||
headerAriaLabel: 'Notifications Tab' | ||
}, | ||
profile: { | ||
title: 'My Profile', | ||
headerAriaLabel: 'My Profile Tab', | ||
controllerAriaLabel: 'User Settings' | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export type ListItem = { | ||
name: string; | ||
icon: string; | ||
link: string; | ||
disabled: boolean; | ||
}; | ||
|
||
export type ListItems = { | ||
name: string; | ||
items: ListItem[]; | ||
}; | ||
|
||
export type RightPanelType = { | ||
[panel: string]: boolean; | ||
}; |
Oops, something went wrong.