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

fix: divider usage in HeaderAndActions #113

Merged
merged 23 commits into from
Feb 28, 2024

Conversation

DhruvArora-03
Copy link
Member

@DhruvArora-03 DhruvArora-03 commented Feb 27, 2024

image

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

@@ -50,6 +51,12 @@ const exampleCourse: Course = new Course({
},
});

const exampleSchedule: UserSchedule = new UserSchedule({
Copy link
Collaborator

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>;

Copy link
Member Author

Choose a reason for hiding this comment

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

image
I'm getting this error

Copy link
Member Author

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?

Copy link
Collaborator

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.

@doprz
Copy link
Collaborator

doprz commented Feb 28, 2024

Also small nit. Check Best Practices / lint action.

@DhruvArora-03 DhruvArora-03 requested a review from doprz February 28, 2024 14:49
@doprz doprz merged commit 22feda3 into Longhorn-Developers:hackathon Feb 28, 2024
4 of 5 checks passed
doprz pushed a commit that referenced this pull request Mar 6, 2024
* 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
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