+
Jump to
-
-
-
-
-
-
-
-
-
+
+ {navItems.map(({ to, label, Icon, active }) => (
+
+ ))}
);
diff --git a/src/react/src/components/ProductionLocation/Sidebar/NavBar/styles.js b/src/react/src/components/ProductionLocation/Sidebar/NavBar/styles.js
index 46122fb3c..309edc583 100644
--- a/src/react/src/components/ProductionLocation/Sidebar/NavBar/styles.js
+++ b/src/react/src/components/ProductionLocation/Sidebar/NavBar/styles.js
@@ -1,10 +1,60 @@
+import COLOURS from '../../../../util/COLOURS';
+import commonStyles from '../../commonStyles';
+
export default theme =>
Object.freeze({
- container: Object.freeze({
- backgroundColor: 'white',
+ ...commonStyles(theme),
+ navContainer: Object.freeze({
+ padding: '12px',
marginBottom: theme.spacing.unit,
}),
title: Object.freeze({
- marginBottom: theme.spacing.unit,
+ fontWeight: 600,
+ fontSize: '1.125rem',
+ margin: '0 0 12px 0',
+ }),
+ menuList: Object.freeze({
+ padding: 0,
+ }),
+ menuItem: Object.freeze({
+ display: 'flex',
+ alignItems: 'center',
+ padding: '0 12px',
+ height: '36px',
+ borderRadius: 0,
+ gap: '8px',
+ transition: 'background-color 0.2s ease',
+ '&:hover': {
+ backgroundColor: COLOURS.HOVER_GREY,
+ },
+ }),
+ menuItemActive: Object.freeze({
+ color: `${theme.palette.primary.main}14`,
+ }),
+ menuIcon: Object.freeze({
+ fontSize: 18,
+ width: 18,
+ height: 18,
+ flexShrink: 0,
+ color: theme.palette.text.secondary,
+ }),
+ menuIconActive: Object.freeze({
+ color: theme.palette.primary.main,
+ }),
+ menuLabel: Object.freeze({
+ fontSize: '1rem',
+ color: COLOURS.BLACK,
+ }),
+ menuLabelActive: Object.freeze({
+ fontWeight: 600,
+ color: theme.palette.primary.main,
+ }),
+ link: Object.freeze({
+ display: 'flex',
+ alignItems: 'center',
+ gap: '8px',
+ textDecoration: 'none',
+ color: 'inherit',
+ width: '100%',
}),
});