Skip to content

Commit

Permalink
fix: navigate path in base sidebar active status error (#1173)
Browse files Browse the repository at this point in the history
* chore: brand new component `BreadCrumb`

* fix: navigate path in base sidebar active status error

* fix: share aggregation does not work
  • Loading branch information
caoxing9 authored Dec 18, 2024
1 parent 84d8e57 commit ded96c4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const BaseSideBar = () => {
asChild
className={cn(
'w-full justify-start text-sm my-[2px]',
href === router.asPath && 'bg-secondary'
router.asPath.startsWith(href) && 'bg-secondary'
)}
>
<Link href={href} className="font-normal">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ export const GridViewBase = (props: IGridViewProps) => {
</div>
</div>
)}
<StatisticMenu />
<DomBox id={componentId} />
<ExpandRecordContainer ref={expandRecordRef} recordServerData={ssrRecord} />
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/ui-lib/src/shadcn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ export * from './ui/carousel';
export * from './ui/toggle-group';
export * from './ui/chart';
export * from './ui/input-otp';
export * from './ui/breadcrumb';

0 comments on commit ded96c4

Please sign in to comment.