menu item do not collapse on click
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
73db807107
commit
be5b102522
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.7.12",
|
||||
"version": "0.7.13",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -118,19 +118,19 @@ const NavItem = ({
|
||||
const match = currentLocation.pathname === to || currentLocation.pathname === `/${to}`;
|
||||
|
||||
const linkProps = props.href
|
||||
? {
|
||||
href: props.href,
|
||||
target: "_blank",
|
||||
className: `external-site-link ${className}`,
|
||||
}
|
||||
: {
|
||||
component: NavLink,
|
||||
to: to,
|
||||
className: `button-dapp-menu ${className}`,
|
||||
};
|
||||
? {
|
||||
href: props.href,
|
||||
target: "_blank",
|
||||
className: `external-site-link ${className}`,
|
||||
}
|
||||
: {
|
||||
component: NavLink,
|
||||
to: to,
|
||||
className: `button-dapp-menu ${className}`,
|
||||
};
|
||||
|
||||
const LinkItem = () => (
|
||||
<Link {...linkProps} {...props} underline="hover">
|
||||
<Link {...linkProps} {...props} underline="hover" onClick={(e) => e.stopPropagation()}>
|
||||
<Box
|
||||
sx={{ fontFamily: "Ubuntu" }}
|
||||
display="flex"
|
||||
|
||||
@ -136,7 +136,7 @@ const NavContent = ({ chainId, addressChainId }) => {
|
||||
</AccordionDetails>
|
||||
}
|
||||
/>
|
||||
<NavItem icon={StakeIcon} label={`(3, 3) Stake`} to={`/${chainName}/stake`} />
|
||||
<NavItem icon={StakeIcon} label={`(3, 3) Stake`} to={`/${chainName}/stake`} />
|
||||
<NavItem
|
||||
defaultExpanded
|
||||
icon={BondIcon}
|
||||
@ -180,7 +180,7 @@ const NavContent = ({ chainId, addressChainId }) => {
|
||||
</AccordionDetails>
|
||||
}
|
||||
/>
|
||||
<NavItem icon={ForkRightIcon} label={`${bridgeNumbers} Stake\u00B2`} to={`/${chainName}/bridge`} />
|
||||
<NavItem icon={ForkRightIcon} label={`${bridgeNumbers} Stake\u00B2`} to={`/${chainName}/bridge`} />
|
||||
{isGovernanceAvailable(chainId, addressChainId) && <NavItem icon={GavelIcon} label={`Governance`} to={`/${chainName}/governance`} />}
|
||||
<Box className="menu-divider">
|
||||
<Divider />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user