You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
className (Generic Interface)
icon (JSX.Element)
Something like this:
<Iconicon={<pony/>}className=“classes...”/>
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: