We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3713a commit 38a5d84Copy full SHA for 38a5d84
airbyte-webapp/src/utils/imageUtils.tsx
@@ -3,12 +3,9 @@ import styled from "styled-components";
3
4
import { DefaultLogoCatalog } from "components";
5
6
-const IconContainer = styled.div`
+const IconContainer = styled.img`
7
height: 100%;
8
- & > svg {
9
- height: 100%;
10
- width: 100%;
11
- }
+ width: 100%;
12
`;
13
14
const IconDefaultContainer = styled.div`
@@ -24,5 +21,10 @@ export const getIcon = (icon?: string): React.ReactNode => {
24
21
);
25
22
}
26
23
27
- return <IconContainer dangerouslySetInnerHTML={{ __html: icon }} />;
+ return (
+ <IconContainer
+ alt=""
+ src={`data:image/svg+xml;utf8,${encodeURIComponent(icon)}`}
28
+ />
29
+ );
30
};
0 commit comments