-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Badge and Branding to Typescript #1801
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we've got a few spots where we're ignoring type errors in app code. Let's resolve those and we should be good to go!
@@ -3,7 +3,9 @@ import Swatch from 'components/Branding/Swatch/Swatch'; | |||
import Content from 'components/Content/Content'; | |||
|
|||
function ColorSection() { | |||
// @ts-expect-error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's fine to have error expects in test code, but not in UI code... what's the error here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Climate has analyzed commit fd0d0f2 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (90% is the threshold). This pull request will bring the total coverage in the repository to 79.6% (-1.0% change). View more on Code Climate. |
Passing run #4639 ↗︎
Details:
Review all test suite changes for PR #1801 ↗︎ |
Description of changes
Converting components included all test and storybook files for each.
Badge
component to Typescript, removed prop-types, and added a props typeBranding
components to Typescript, removed prop-types, and added a props typeColorSection
FontSection
LogoSection
Swatch
Issue Resolved
Fixes #NA
Screenshots/GIFs
All new .tsx files