This PR adds support for a selection of icons used in the main Code4rena repo through the Icon component. For a full list of the available icons, please check the Iconography tab on Storybook
fixed any @ts-ignore instances to do with CSS props (by using react's CSSProperties type)
extended contest tile storybook examples to include 'upcoming' && 'current' && 'ended' states
fixed the ts-ignores in contest tile too (to do with variant enums)
added an option hideDropdown prop to the contest tile to allow frontend to override and hide the dropdown options
add audit's title to aria-label of the view audit button in contest tiles
Closes https://github.com/code4rena-dev/components-library/issues/32
This PR adds support for a selection of icons used in the main Code4rena repo through the Icon component. For a full list of the available icons, please check the Iconography tab on Storybook
It also includes the following changes:
Migrate defaultProps to JS default params
This PR migrates all use of defaultProps to JS default params Closes https://github.com/code4rena-dev/components-library/issues/30 Translate audit+miti to just audit
Similar to: https://github.com/code4rena-dev/code4rena.com/pull/650 to solve: https://github.com/code4rena-dev/code4rena.com/issues/639 Translates "Audit + mitigation review" label to just "Audit" Contest tile and other updates
fixed any @ts-ignore instances to do with CSS props (by using react's CSSProperties type) extended contest tile storybook examples to include 'upcoming' && 'current' && 'ended' states fixed the ts-ignores in contest tile too (to do with variant enums) added an option hideDropdown prop to the contest tile to allow frontend to override and hide the dropdown options add audit's title to aria-label of the view audit button in contest tiles Closes https://github.com/code4rena-dev/components-library/issues/32