Skip to content

Commit

Permalink
fix: delegation tab highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
hyifeng committed Mar 21, 2024
1 parent 350678d commit 0409818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function ListTabs() {
if (tab === "" || tab === "/") {
router.push(
{
pathname: `/user/${address}/delegation`,
pathname: `/user/${address}/delegation/received`,
},
undefined,
{ shallow: true },
Expand All @@ -36,7 +36,7 @@ export default function ListTabs() {
extra: <ModuleTab />,
},
{
url: `/user/${address}/delegation`,
url: `/user/${address}/delegation/delegated`,
name: "Delegations",
content: <DelegatedVotes />,
extra: <ModuleTab />,
Expand Down
2 changes: 1 addition & 1 deletion packages/next-common/components/profile/tabs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function useProfileTabs() {
if (hasReferenda || !noDemocracyModule) {
tabs.push({
label: "Delegation",
url: `${prefix}delegation/received`,
url: `${prefix}delegation`,
exactMatch: false,
});
}
Expand Down

0 comments on commit 0409818

Please sign in to comment.