...
Task 1 - Create feature flag
Task 2 - Add new icons
Some icons we have in storybook, so just need to import . https://ctg-components-library.rbictg.com/?path=/story/theme-icon--icons here.
But new icons we need to add in the repository ctg-components-library, for to get new icons here.
Add the new icons in storybook too.
Task 3 - Create a new component for icon
...
Each item of menu are compost by component ArrowLink
src/components/arrow-link/arrow-link.tsx.
On the component ArrowLink
we have two components, one case is external link and one case not external link, we will use the not external link StyledLink
, and we can add two new props, because this component is used in others locals, so we will to add “customIcon" and “nameIcon" props and these props are optional. And in the component for account/index we add these props, "customIcon“ with the value of flag created in the task 1 and name icon with name of icon in component-library. Case true the prop is true and show the new icon.
...