code4rena-dev / components-library

Components library for Code4rena, and accessible as a package to be used in React based Code4rena products.
https://components-library-wine.vercel.app
0 stars 0 forks source link

Icon Component + Various Changes #38

Closed leo95oliveira closed 8 months ago

leo95oliveira commented 8 months ago

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

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
components-library ✅ Ready (Inspect) Visit Preview Jan 15, 2024 4:20pm