some ui changes at the navigation

This commit is contained in:
Gala
2022-09-29 17:54:31 +03:00
parent 49b3a5aa90
commit ef8f6ed07b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ import { Footer } from './Footer';
import { DarkLightSwitchDesktop } from './Switch';
import { NavOptionType } from '../context/nav';
const drawerWidth = 300;
const drawerWidth = 220;
const openedMixin = (theme: Theme): CSSObject => ({
width: drawerWidth,
@@ -108,7 +108,7 @@ export const ExpandableButton: React.FC<ExpandableButtonType> = ({
const handleClick = () => {
setToActive(id);
if (title === 'Network Components' && nested) {
if (title === 'Network Nodes' && nested) {
openDrawer();
toggleNestedOptions(!nestedOptions);
}
@@ -182,7 +182,7 @@ export const ExpandableButton: React.FC<ExpandableButtonType> = ({
background: isChild ? palette.nym.networkExplorer.nav.selected.nested : 'none',
}}
>
<ListItemIcon>{Icon}</ListItemIcon>
<ListItemIcon sx={{ minWidth: '39px' }}>{Icon}</ListItemIcon>
<ListItemText
primary={title}
sx={{
+1 -1
View File
@@ -26,7 +26,7 @@ export const originalNavOptions: NavOptionType[] = [
id: 1,
isActive: false,
url: '/network-components',
title: 'Network Components',
title: 'Network Nodes',
Icon: <NetworkComponentsSVG />,
nested: [
{