Skip to content

Commit f263f35

Browse files
committed
Fixing icon colouring
1 parent fd131d6 commit f263f35

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

frontend/src/assets/connectors/component-logo-map.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
SiSplunk,
1414
SiTrino,
1515
} from '@icons-pack/react-simple-icons';
16-
import { RedpandaUILetterIconColor } from 'components/redpanda-ui/components/icons';
16+
import { RedpandaUILetterIcon } from 'components/redpanda-ui/components/icons';
1717
import {
1818
Activity,
1919
Archive,
@@ -43,6 +43,7 @@ import {
4343
Type,
4444
Workflow,
4545
} from 'lucide-react';
46+
import type { SVGProps } from 'react';
4647

4748
import {
4849
AmazonWebServicesLogo,
@@ -96,6 +97,10 @@ import {
9697
XmlLogo,
9798
} from './logos';
9899

100+
const RedpandaLetterLogo = (props: SVGProps<SVGSVGElement>) => (
101+
<RedpandaUILetterIcon {...props} style={{ color: '#E14226', ...props.style }} />
102+
);
103+
99104
export const componentLogoMap = {
100105
custom: Settings,
101106
amqp_0_9: RabbitMQLogo,
@@ -122,7 +127,7 @@ export const componentLogoMap = {
122127
batched: Package,
123128
beanstalkd: BeanstalkdLogo,
124129
benchmark: Activity,
125-
bloblang: RedpandaUILetterIconColor,
130+
bloblang: RedpandaLetterLogo,
126131
bounds_check: undefined,
127132
branch: undefined,
128133
broker: undefined,
@@ -249,12 +254,12 @@ export const componentLogoMap = {
249254
redis_scan: RedisLogo,
250255
redis_script: RedisLogo,
251256
redis_streams: RedisLogo,
252-
redpanda: RedpandaUILetterIconColor,
253-
redpanda_common: RedpandaUILetterIconColor,
254-
redpanda_data_transform: RedpandaUILetterIconColor,
255-
redpanda_migrator: RedpandaUILetterIconColor,
256-
redpanda_migrator_bundle: RedpandaUILetterIconColor,
257-
redpanda_migrator_offsets: RedpandaUILetterIconColor,
257+
redpanda: RedpandaLetterLogo,
258+
redpanda_common: RedpandaLetterLogo,
259+
redpanda_data_transform: RedpandaLetterLogo,
260+
redpanda_migrator: RedpandaLetterLogo,
261+
redpanda_migrator_bundle: RedpandaLetterLogo,
262+
redpanda_migrator_offsets: RedpandaLetterLogo,
258263
reject: undefined,
259264
reject_errored: undefined,
260265
resource: Package,

0 commit comments

Comments
 (0)