Commit 6dc48dc 1 parent 70ea26e commit 6dc48dc Copy full SHA for 6dc48dc
File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 6
6
dark:text-neutral-200;
7
7
8
8
a {
9
+ @apply inline-flex
10
+ items-center
11
+ gap-2
12
+ p-2;
13
+ }
14
+
15
+ .label {
9
16
@apply w-full
10
- p-2
11
17
text-sm
12
18
font-regular;
13
19
}
20
+
21
+ .icon {
22
+ @apply size-3
23
+ text-neutral-500
24
+ dark:text-neutral-200;
25
+ }
14
26
}
15
27
16
28
.active {
Original file line number Diff line number Diff line change
1
+ import { ArrowUpRightIcon } from '@heroicons/react/24/solid' ;
1
2
import type { FC } from 'react' ;
2
3
3
4
import ActiveLink from '@/components/Common/ActiveLink' ;
@@ -13,7 +14,9 @@ type SidebarItemProps = {
13
14
const SidebarItem : FC < SidebarItemProps > = ( { label, link } ) => (
14
15
< li className = { styles . sideBarItem } >
15
16
< ActiveLink href = { link } activeClassName = { styles . active } >
16
- { label }
17
+ < span className = { styles . label } > { label } </ span >
18
+
19
+ { link . startsWith ( 'http' ) && < ArrowUpRightIcon className = { styles . icon } /> }
17
20
</ ActiveLink >
18
21
</ li >
19
22
) ;
You can’t perform that action at this time.
0 commit comments