Skip to content
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

Migrate Drawer, ErrorDisplay, and FeaturedJobItem components to typescript #1804

Merged
merged 9 commits into from
Mar 5, 2024

Conversation

recondesigns
Copy link
Contributor

Description of changes

Migrated the following components to Typescript, removed prop-types, and added a props type:

  • Drawer
  • ErrorDisplay
  • FeaturedJobItem

Migrating components included all test and storybook files for each.

Issue Resolved

Fixes #NA

Screenshots/GIFs

All new .tsx files

Screenshot 2024-03-04 at 12 45 49 PM

@recondesigns recondesigns requested a review from kylemh March 4, 2024 18:46
Copy link

vercel bot commented Mar 4, 2024

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

Name Status Preview Comments Updated (UTC)
operation-code ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 5:45am
storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 5:45am

@recondesigns recondesigns changed the title Migrate drawer typescript Migrate Drawer, ErrorDisplay, and FeaturedJobItem components to typescript Mar 4, 2024
components/Drawer/Drawer.tsx Outdated Show resolved Hide resolved
<div
className={classNames(
className,
'hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2]',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2]',
'hidden lg:block transition-all ease-in-out duration-1000 fixed top-0 bottom-0 overflow-hidden width-full z-[2]',

same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There doesn't appear to be a change in the suggestion. Am I missing a tiny detail?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are 2 spaces between bottom-0 and overflow-hidden. Perhaps you need to lower the contrast on your monitor?

Screenshot 2024-03-05 at 3 05 09 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhhh... I actually did see it, but didn't know what it was. This is merged, should I make that change in one of the other branches I am working?

components/Drawer/__stories__/Drawer.stories.tsx Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Mar 5, 2024

Code Climate has analyzed commit cc8587d 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 80.3%.

View more on Code Climate.

Copy link

cypress bot commented Mar 5, 2024

Passing run #4669 ↗︎

0 25 0 0 Flakiness 0

Details:

updated Drawer snapshot
Project: operation_code Commit: cc8587d18e
Status: Passed Duration: 03:37 💡
Started: Mar 5, 2024 5:45 AM Ended: Mar 5, 2024 5:49 AM

Review all test suite changes for PR #1804 ↗︎

@kylemh kylemh merged commit 5ea7f3e into main Mar 5, 2024
18 checks passed
@kylemh kylemh deleted the migrate-drawer-typescript branch March 5, 2024 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants