File tree 2 files changed +3
-1
lines changed 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ export default function Menu() {
159
159
< span className = "text-gray-800 dark:text-gray-100 text-base font-semibold" > { userFullName } </ span >
160
160
< span className = "" > Personal Account</ span >
161
161
</ div > ,
162
+ active : ! team ,
162
163
separator : true ,
163
164
link : '/' ,
164
165
} ,
@@ -171,6 +172,7 @@ export default function Menu() {
171
172
: '...'
172
173
} </ span >
173
174
</ div > ,
175
+ active : team && team . id === t . id ,
174
176
separator : true ,
175
177
link : `/${ t . slug } ` ,
176
178
} ) ) . sort ( ( a , b ) => a . title . toLowerCase ( ) > b . title . toLowerCase ( ) ? 1 : - 1 ) ,
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ function ContextMenu(props: ContextMenuProps) {
84
84
< div className = { `mt-2 z-50 bg-white dark:bg-gray-900 absolute flex flex-col border border-gray-200 dark:border-gray-800 rounded-lg truncated ${ props . classes || 'w-48 right-0' } ` } >
85
85
{ props . menuEntries . map ( ( e , index ) => {
86
86
const clickable = e . href || e . onClick || e . link ;
87
- const entry = < div className = { `px-4 flex py-3 ${ clickable ? 'hover:bg-gray-200 dark:hover:bg-gray-800' : '' } text-sm leading-1 ${ e . customFontStyle || font } ${ e . separator ? ' border-b border-gray-200 dark:border-gray-800' : '' } ` } title = { e . title } >
87
+ const entry = < div className = { `px-4 flex py-3 ${ clickable ? 'hover:bg-gray-100 dark:hover:bg-gray-700' : '' } ${ e . active ? 'bg-gray-50 dark:bg-gray- 800' : '' } ${ index === 0 ? 'rounded-t-lg' : '' } ${ index === props . menuEntries . length - 1 ? 'rounded-b-lg ' : '' } text-sm leading-1 ${ e . customFontStyle || font } ${ e . separator ? ' border-b border-gray-200 dark:border-gray-800' : '' } ` } title = { e . title } >
88
88
{ e . customContent || < > < div className = "truncate w-52" > { e . title } </ div > < div className = "flex-1" > </ div > { e . active ? < div className = "pl-1 font-semibold" > ✓</ div > : null } </ > }
89
89
</ div >
90
90
const key = `entry-${ menuId } -${ index } -${ e . title } ` ;
You can’t perform that action at this time.
0 commit comments