Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Jul 9, 2024
1 parent 6cd4e0d commit 75a37cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/Menu/IssuerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type IssuerMenuProps = {
}

export function IssuerMenu({ defaultOpen = false, stacked, children }: IssuerMenuProps) {
const match = useMatch('/issuer/:pid')
const match = useMatch('/issuer/*')
const isActive = !!match
const [open, setOpen] = React.useState(defaultOpen)
const { space } = useTheme()
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/components/Menu/NavManagementMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type NavManagementMenuProps = {
}
// TODO: deduplicate some code between this and the IssuerMenu
export function NavManagementMenu({ stacked }: NavManagementMenuProps) {
const match = useMatch('/nav-management/:pid')
const match = useMatch('/nav-management/*')
const isActive = !!match
const [open, setOpen] = React.useState(isActive)
const { space } = useTheme()
Expand Down
3 changes: 2 additions & 1 deletion centrifuge-app/src/components/Menu/PoolLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ type PoolLinkProps = {
}

export function PoolLink({ pool, path = 'issuer' }: PoolLinkProps) {
const match = useMatch(`/${path}/:pid`)
const match = useMatch(`/${path}/:pid/*`)
const { data: metadata } = usePoolMetadata(pool)
const to = `/${path}/${pool.id}`

return (
<Root
forwardedAs={Link}
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Pool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export default function PoolDetailPage() {
<Route path="/" element={<PoolDetailOverviewTab />} />
</Routes>
)
}
}

0 comments on commit 75a37cb

Please sign in to comment.