aldytaken / meca-store

https://meca-store.vercel.app/
0 stars 0 forks source link

Icon Component #29

Open jdic opened 1 day ago

jdic commented 1 day ago

Because the icons have a very similar structure and are repeated in various parts of the code, an <Icon /> component should be created to reuse where required and at the same time facilitate future changes to the icons.

Once created in the component, replace everywhere where there are icons with the new component.

The component must have the following props:

Something like this:

<Icon icon={<pony/>} className=“classes...” />
jdic commented 1 day ago

You must create the component in:

src/modules/common