11/* eslint-disable @typescript-eslint/no-explicit-any */
2+ import { Launch } from '@mui/icons-material' ;
23import ExpandMoreIcon from '@mui/icons-material/ExpandMore' ;
34import { useState } from 'react' ;
4- import { Accordion , AccordionDetails , AccordionSummary , Typography } from '../../base' ;
5+ import { Accordion , AccordionDetails , AccordionSummary , IconButton , Typography } from '../../base' ;
6+ import { CLOUD_URL } from '../../constants/constants' ;
57import { TeamsIcon } from '../../icons' ;
8+ import { useTheme } from '../../theme' ;
69import { CustomColumnVisibilityControl } from '../CustomColumnVisibilityControl' ;
10+ import { CustomTooltip } from '../CustomTooltip' ;
711import SearchBar from '../SearchBar' ;
812import { TeamTableConfiguration } from '../TeamTable' ;
913import TeamTable from '../TeamTable/TeamTable' ;
@@ -102,7 +106,7 @@ const TeamsTable: React.FC<TeamsTableProps> = ({
102106 isDeleteTeamAllowed : isDeleteTeamAllowed ,
103107 setSearch
104108 } ) ;
105-
109+ const theme = useTheme ( ) ;
106110 return (
107111 < >
108112 < Accordion expanded = { expanded } onChange = { handleAccordionChange } style = { { margin : 0 } } >
@@ -137,7 +141,19 @@ const TeamsTable: React.FC<TeamsTableProps> = ({
137141 < L5EditIcon
138142 onClick = { teamAssignment . handleAssignModal }
139143 disabled = { ! isAssignTeamAllowed }
144+ title = "Assign Teams"
140145 />
146+ < CustomTooltip title = { 'Manage Teams' } >
147+ < div >
148+ < IconButton
149+ onClick = { ( ) => {
150+ window . open ( `${ CLOUD_URL } /identity/teams` , '_blank' ) ;
151+ } }
152+ >
153+ < Launch />
154+ </ IconButton >
155+ </ div >
156+ </ CustomTooltip >
141157 </ TableRightActionHeader >
142158 </ TableHeader >
143159 </ AccordionSummary >
@@ -163,7 +179,14 @@ const TeamsTable: React.FC<TeamsTableProps> = ({
163179 open = { teamAssignment . assignModal }
164180 onClose = { teamAssignment . handleAssignModalClose }
165181 title = { `Assign Teams to ${ workspaceName } ` }
166- headerIcon = { < TeamsIcon height = "40" width = "40" primaryFill = { 'white' } fill = { 'gray' } /> }
182+ headerIcon = {
183+ < TeamsIcon
184+ height = "40"
185+ width = "40"
186+ primaryFill = { theme . palette . common . white }
187+ fill = { theme . palette . icon . disabled }
188+ />
189+ }
167190 name = "Teams"
168191 assignableData = { teamAssignment . data }
169192 handleAssignedData = { teamAssignment . handleAssignData }
@@ -173,7 +196,7 @@ const TeamsTable: React.FC<TeamsTableProps> = ({
173196 height = "5rem"
174197 width = "5rem"
175198 primaryFill = { '#808080' }
176- secondaryFill = { 'gray' }
199+ secondaryFill = { theme . palette . icon . disabled }
177200 fill = { '#808080' }
178201 />
179202 }
0 commit comments