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

chore(schedule): refactor storybook #431

Merged
merged 3 commits into from
Mar 8, 2022
Merged

chore(schedule): refactor storybook #431

merged 3 commits into from
Mar 8, 2022

Conversation

jzempel
Copy link
Member

@jzempel jzempel commented Mar 8, 2022

Description

Following #420, update storybook for the schedule package.

Checklist

  • 🌐 Storybook demo is up-to-date (yarn start)
  • β™Ώ analyzed via axe and evaluated using VoiceOver
  • πŸ’‚β€β™‚οΈ includes new unit tests
  • πŸ“ tested in Chrome, Firefox, Safari, Edge, and IE11

@jzempel jzempel requested a review from a team as a code owner March 8, 2022 14:18
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.868% when pulling 4712bb4 on jzempel/demo-schedule into 48dff02 on main.


const Container = ({ loop, ...props }: IScheduleContainerProps) => (
<ScheduleContainer loop={loop} {...props}>
{containerProps => <Component {...containerProps} loop={loop} />}
Copy link

Choose a reason for hiding this comment

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

Wouldn't containerProps also pass thru loop from the container with no need to manually pass loop to Component?

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately, the loop prop is not reconstituted in the containerProps. (In going through this exercise, I'm noting API discontinuity between the packages – this is one area where we could improve consistency.) So, I'm feeding it through. But worth noting that a) it is simply for string display, and b) these particular (overly) abstracted examples are a bit contrived since IRL one would either use the container or the hook and all the props would likely be available in one place.

@jzempel jzempel merged commit 2ca49e1 into main Mar 8, 2022
@jzempel jzempel deleted the jzempel/demo-schedule branch March 8, 2022 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants