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",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.7.12",
|
"version": "0.7.13",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -118,19 +118,19 @@ const NavItem = ({
|
|||||||
const match = currentLocation.pathname === to || currentLocation.pathname === `/${to}`;
|
const match = currentLocation.pathname === to || currentLocation.pathname === `/${to}`;
|
||||||
|
|
||||||
const linkProps = props.href
|
const linkProps = props.href
|
||||||
? {
|
? {
|
||||||
href: props.href,
|
href: props.href,
|
||||||
target: "_blank",
|
target: "_blank",
|
||||||
className: `external-site-link ${className}`,
|
className: `external-site-link ${className}`,
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
component: NavLink,
|
component: NavLink,
|
||||||
to: to,
|
to: to,
|
||||||
className: `button-dapp-menu ${className}`,
|
className: `button-dapp-menu ${className}`,
|
||||||
};
|
};
|
||||||
|
|
||||||
const LinkItem = () => (
|
const LinkItem = () => (
|
||||||
<Link {...linkProps} {...props} underline="hover">
|
<Link {...linkProps} {...props} underline="hover" onClick={(e) => e.stopPropagation()}>
|
||||||
<Box
|
<Box
|
||||||
sx={{ fontFamily: "Ubuntu" }}
|
sx={{ fontFamily: "Ubuntu" }}
|
||||||
display="flex"
|
display="flex"
|
||||||
|
|||||||
@ -136,7 +136,7 @@ const NavContent = ({ chainId, addressChainId }) => {
|
|||||||
</AccordionDetails>
|
</AccordionDetails>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<NavItem icon={StakeIcon} label={`(3, 3) Stake`} to={`/${chainName}/stake`} />
|
<NavItem icon={StakeIcon} label={`(3, 3) Stake`} to={`/${chainName}/stake`} />
|
||||||
<NavItem
|
<NavItem
|
||||||
defaultExpanded
|
defaultExpanded
|
||||||
icon={BondIcon}
|
icon={BondIcon}
|
||||||
@ -180,7 +180,7 @@ const NavContent = ({ chainId, addressChainId }) => {
|
|||||||
</AccordionDetails>
|
</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`} />}
|
{isGovernanceAvailable(chainId, addressChainId) && <NavItem icon={GavelIcon} label={`Governance`} to={`/${chainName}/governance`} />}
|
||||||
<Box className="menu-divider">
|
<Box className="menu-divider">
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user