Skip to content

Conversation

pd-redis
Copy link
Collaborator

No description provided.

@pd-redis
Copy link
Collaborator Author

Before:
image

After:
image

@pd-redis pd-redis force-pushed the feature/fe/RI-7046-replace-eui-checkbox branch from cfef56e to 612ce31 Compare May 29, 2025 07:48
@pd-redis pd-redis requested a review from dantovska May 29, 2025 08:46
@pd-redis pd-redis force-pushed the feature/fe/RI-7046-replace-eui-checkbox branch from 612ce31 to 14798bd Compare May 29, 2025 08:47
Comment on lines +2 to +6
import RedisAIDark from 'uiSrc/assets/img/modules/RedisAIDark.svg?react'
import { Icon, IconProps } from 'uiSrc/components/base/icons'

export const RedisAIDarkIcon = (props: IconProps) => (
<Icon icon={RedisAIDark} {...props} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's generally more maintainable to have a single reusable Icon component instead of {iconsCount} wrapper components

my suggestion would obviously require reverting lots of changes and making the PR smaller

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a single reusble component. The Icon component is the component, that wraps SVG's
If you suggest a component like EuiIcon to which you pass a string which indicates what icon do you want, then I have to disagree.
This approach requires the "MAIN ICON" component to import ALL svgs and map them to strings which one can then use. Which means that importing even a single icon will import them all in any bundle chunk

@pd-redis pd-redis merged commit a4ca899 into fe/feature/RI-7039-replace-eui Jun 4, 2025
26 checks passed
@pd-redis pd-redis deleted the feature/fe/RI-7046-replace-eui-checkbox branch June 4, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants