Skip to content

Commit

Permalink
Do not override color for RemoteIconInformation SVG icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs authored and camillemonchicourt committed Aug 3, 2023
1 parent f3b8305 commit 52bf8b3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Image from 'next/image';
import SVG from 'react-inlinesvg';

import { optimizeAndDefineColor } from 'stylesheet';
import { optimizeSVG } from 'stylesheet';
import { Information } from '../BaseInformation';

export interface Props {
Expand All @@ -16,7 +16,7 @@ export interface Props {
export const RemoteIconInformation: React.FC<Props> = ({ iconUri, ...props }) => {
let icon = null;
if (RegExp(/(.*).svg/).test(iconUri)) {
icon = <SVG src={iconUri} className="w-6 h-full" preProcessor={optimizeAndDefineColor()} />;
icon = <SVG src={iconUri} className="w-6 h-full" preProcessor={optimizeSVG} />;
} else if (typeof iconUri === 'string' && iconUri.length) {
icon = (
<Image
Expand Down

0 comments on commit 52bf8b3

Please sign in to comment.