@@ -13,6 +13,7 @@ import {
1313} from '../../base' ;
1414import { iconLarge , iconXSmall } from '../../constants/iconsSizes' ;
1515import { DesignIcon , EnvironmentIcon , TeamsIcon , ViewIcon , WorkspaceIcon } from '../../icons' ;
16+ import { useTheme } from '../../theme' ;
1617import { getFormatDate , getFullFormattedTime } from '../../utils' ;
1718import { CustomTooltip } from '../CustomTooltip' ;
1819import { Modal , ModalBody , ModalFooter } from '../Modal' ;
@@ -121,7 +122,7 @@ const WorkspaceRecentActivityModal: React.FC<RecentActivityModalProps> = ({
121122 } ,
122123 [ isEventsLoading , isFetching , hasMore ]
123124 ) ;
124-
125+ const theme = useTheme ( ) ;
125126 const getImage = ( description : string ) => {
126127 const availableTypes = [ 'design' , 'view' , 'environment' , 'team' ] ;
127128 const type = availableTypes . find ( ( type ) => description . includes ( type ) ) ;
@@ -132,11 +133,11 @@ const WorkspaceRecentActivityModal: React.FC<RecentActivityModalProps> = ({
132133 case 'view' :
133134 return < ViewIcon { ...iconXSmall } /> ;
134135 case 'environment' :
135- return < EnvironmentIcon { ...iconXSmall } /> ;
136+ return < EnvironmentIcon { ...iconXSmall } fill = { theme . palette . icon . default } /> ;
136137 case 'team' :
137- return < TeamsIcon { ...iconXSmall } fill = "" /> ;
138+ return < TeamsIcon { ...iconXSmall } primaryFill = { theme . palette . icon . default } fill = "" /> ;
138139 default :
139- return < WorkspaceIcon { ...iconXSmall } /> ;
140+ return < WorkspaceIcon { ...iconXSmall } fill = { theme . palette . icon . default } /> ;
140141 }
141142 } ;
142143
0 commit comments