@@ -13,6 +13,7 @@ import {
13
13
} from '../../base' ;
14
14
import { iconLarge , iconXSmall } from '../../constants/iconsSizes' ;
15
15
import { DesignIcon , EnvironmentIcon , TeamsIcon , ViewIcon , WorkspaceIcon } from '../../icons' ;
16
+ import { useTheme } from '../../theme' ;
16
17
import { getFormatDate , getFullFormattedTime } from '../../utils' ;
17
18
import { CustomTooltip } from '../CustomTooltip' ;
18
19
import { Modal , ModalBody , ModalFooter } from '../Modal' ;
@@ -121,7 +122,7 @@ const WorkspaceRecentActivityModal: React.FC<RecentActivityModalProps> = ({
121
122
} ,
122
123
[ isEventsLoading , isFetching , hasMore ]
123
124
) ;
124
-
125
+ const theme = useTheme ( ) ;
125
126
const getImage = ( description : string ) => {
126
127
const availableTypes = [ 'design' , 'view' , 'environment' , 'team' ] ;
127
128
const type = availableTypes . find ( ( type ) => description . includes ( type ) ) ;
@@ -132,11 +133,11 @@ const WorkspaceRecentActivityModal: React.FC<RecentActivityModalProps> = ({
132
133
case 'view' :
133
134
return < ViewIcon { ...iconXSmall } /> ;
134
135
case 'environment' :
135
- return < EnvironmentIcon { ...iconXSmall } /> ;
136
+ return < EnvironmentIcon { ...iconXSmall } fill = { theme . palette . icon . default } /> ;
136
137
case 'team' :
137
- return < TeamsIcon { ...iconXSmall } fill = "" /> ;
138
+ return < TeamsIcon { ...iconXSmall } primaryFill = { theme . palette . icon . default } fill = "" /> ;
138
139
default :
139
- return < WorkspaceIcon { ...iconXSmall } /> ;
140
+ return < WorkspaceIcon { ...iconXSmall } fill = { theme . palette . icon . default } /> ;
140
141
}
141
142
} ;
142
143
0 commit comments