File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 dark:text-neutral-200;
77
88 a {
9+ @apply inline-flex
10+ items-center
11+ gap-2
12+ p-2;
13+ }
14+
15+ .label {
916 @apply w-full
10- p-2
1117 text-sm
1218 font-regular;
1319 }
20+
21+ .icon {
22+ @apply size-3
23+ text-neutral-500
24+ dark:text-neutral-200;
25+ }
1426}
1527
1628.active {
Original file line number Diff line number Diff line change 1+ import { ArrowUpRightIcon } from '@heroicons/react/24/solid' ;
12import type { FC } from 'react' ;
23
34import ActiveLink from '@/components/Common/ActiveLink' ;
@@ -13,7 +14,9 @@ type SidebarItemProps = {
1314const SidebarItem : FC < SidebarItemProps > = ( { label, link } ) => (
1415 < li className = { styles . sideBarItem } >
1516 < ActiveLink href = { link } activeClassName = { styles . active } >
16- { label }
17+ < span className = { styles . label } > { label } </ span >
18+
19+ { link . startsWith ( 'http' ) && < ArrowUpRightIcon className = { styles . icon } /> }
1720 </ ActiveLink >
1821 </ li >
1922) ;
You can’t perform that action at this time.
0 commit comments