File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/apps/copilots/src/pages/copilot-opportunity-details Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ const CopilotOpportunityDetails: FC<{}> = () => {
261
261
< TabsNavbar
262
262
defaultActive = { activeTab }
263
263
onChange = { handleTabChange }
264
- tabs = { getCopilotDetailsTabsConfig ( isAdminOrPM ) }
264
+ tabs = { getCopilotDetailsTabsConfig ( isAdminOrPM , copilotApplications ?. length || 0 ) }
265
265
/>
266
266
)
267
267
}
Original file line number Diff line number Diff line change @@ -5,12 +5,16 @@ export enum CopilotDetailsTabViews {
5
5
applications = '1' ,
6
6
}
7
7
8
- export const getCopilotDetailsTabsConfig = ( isAdminOrPM : boolean ) : TabsNavItem [ ] => ( isAdminOrPM ? [
8
+ export const getCopilotDetailsTabsConfig = ( isAdminOrPM : boolean , count : number ) : TabsNavItem [ ] => ( isAdminOrPM ? [
9
9
{
10
10
id : CopilotDetailsTabViews . details ,
11
11
title : 'Details' ,
12
12
} ,
13
13
{
14
+ badges : [ {
15
+ count,
16
+ type : 'info' ,
17
+ } ] ,
14
18
id : CopilotDetailsTabViews . applications ,
15
19
title : 'Applications' ,
16
20
} ,
You can’t perform that action at this time.
0 commit comments