Commit 51892687 authored by tom's avatar tom

disable click on active element

parent d6d7e2a2
...@@ -14,6 +14,7 @@ interface Props extends NetworkLink { ...@@ -14,6 +14,7 @@ interface Props extends NetworkLink {
} }
const NetworkMenuLink = ({ name, pathname, icon, isActive, isNewUi }: Props) => { const NetworkMenuLink = ({ name, pathname, icon, isActive, isNewUi }: Props) => {
// will fix later after we agree on CI/CD workflow
const href = isNewUi ? pathname : 'https://blockscout.com' + pathname; const href = isNewUi ? pathname : 'https://blockscout.com' + pathname;
const hasIcon = Boolean(icon); const hasIcon = Boolean(icon);
const colors = useColors({ hasIcon }); const colors = useColors({ hasIcon });
...@@ -27,6 +28,7 @@ const NetworkMenuLink = ({ name, pathname, icon, isActive, isNewUi }: Props) => ...@@ -27,6 +28,7 @@ const NetworkMenuLink = ({ name, pathname, icon, isActive, isNewUi }: Props) =>
py={ 2 } py={ 2 }
alignItems="center" alignItems="center"
cursor="pointer" cursor="pointer"
pointerEvents={ isActive ? 'none' : 'initial' }
borderWidth="1px" borderWidth="1px"
borderColor={ isActive ? colors.border.active : colors.border.default } borderColor={ isActive ? colors.border.active : colors.border.default }
borderRadius="base" borderRadius="base"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment