-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix: divider usage in HeaderAndActions #113
fix: divider usage in HeaderAndActions #113
Conversation
@@ -50,6 +51,12 @@ const exampleCourse: Course = new Course({ | |||
}, | |||
}); | |||
|
|||
const exampleSchedule: UserSchedule = new UserSchedule({ |
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.
nit
From lines 60-66 I'm pretty sure that it should be written like this:
const meta = {
title: 'Components/Injected/CourseCatalogInjectedPopup',
component: CourseCatalogInjectedPopup,
argTypes: {
onClose: { action: 'onClose' },
},
} satisfies Meta<typeof CourseCatalogInjectedPopup>;
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.
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.
Maybe we skip storybook typing issues for now and continue onto extension features?
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.
Weird, it should work. I think I know the issue but it's fine if you skip this for now.
src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx
Outdated
Show resolved
Hide resolved
Also small nit. Check |
* fix: use StatusType * fix: use AutoLoadStatus * fix: use typof SiteSupport.* * fix: one more of Status to StatusType * fix: use import type * fix: use path alias imports * fix: use Extract * fix: remove unnecessary import * fix: **revert this later** - comment out build errs * fix: add schedule to story * feat: add props for dividers * revert: un-comment build errors This reverts commit 082e9e0. * Revert "fix: remove unnecessary import" This reverts commit 9230346. * Revert "fix: use Extract" This reverts commit f6aa80d. * Revert "fix: use path alias imports" This reverts commit ea9bf3c. * Revert "fix: use import type" This reverts commit 27fee47. * Revert "Merge branch 'fix/Status-to-StatusType' into fix/divider-usage" This reverts commit b1715ea, reversing changes made to 9ccc43c. * fix: dont use magic number * fix: lint errs * fix: reorder imports
This is what it looks like now, the previous code didn't use the correct props. I also had to edit the story slightly since it didn't pass in a schedule which caused a bug.
Ignore the commit history, I accidentally included other commits so I had to revert them - rebase wasn't working