Skip to content

Commit ffeccd8

Browse files
committed
fix: icon color
Signed-off-by: amitamrutiya <[email protected]>
1 parent 21f4314 commit ffeccd8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/custom/Workspaces/WorkspaceRecentActivityModal.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from '../../base';
1414
import { iconLarge, iconXSmall } from '../../constants/iconsSizes';
1515
import { DesignIcon, EnvironmentIcon, TeamsIcon, ViewIcon, WorkspaceIcon } from '../../icons';
16+
import { useTheme } from '../../theme';
1617
import { getFormatDate, getFullFormattedTime } from '../../utils';
1718
import { CustomTooltip } from '../CustomTooltip';
1819
import { 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

Comments
 (0)