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

convert VirtualizedList stories helpers file to TS #2531

Merged
merged 3 commits into from
Oct 20, 2024

Conversation

Piyush-Tilokani
Copy link
Contributor

Resolves #2514

Converted the packages/core/src/components/VirtualizedList/__stories__/VirtualizedList.stories.helpers.js file to .tsx

Please review and merge
Do let me know if any corrections are required

Thank you

@Piyush-Tilokani Piyush-Tilokani requested a review from a team as a code owner October 13, 2024 19:48
Copy link
Contributor

@rivka-ungar rivka-ungar left a comment

Choose a reason for hiding this comment

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

Thanks @Piyush-Tilokani!
Please use existing type VirtualizedListItem instead of creating a new type

@Piyush-Tilokani
Copy link
Contributor Author

Updated in the latest commit

@talkor talkor self-assigned this Oct 20, 2024
Copy link
Member

@talkor talkor left a comment

Choose a reason for hiding this comment

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

Thank you @Piyush-Tilokani ! Let's just remove the redundant type as CI fails

@@ -2,17 +2,19 @@
import React from "react";
import { Tip } from "vibe-storybook-components";

export const generateItems = (defaultItemSize = 30, itemsCount, layout) => {
const items = [];
export const generateItems = (defaultItemSize: number = 30, itemsCount: number, layout: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the type from defaultItemSize as it inferred from the default value
See CI check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made the change in the latest commit
please check if it is correct

@talkor talkor removed their assignment Oct 20, 2024
Copy link
Member

@talkor talkor left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @Piyush-Tilokani !

@talkor talkor merged commit 0871d5f into mondaycom:master Oct 20, 2024
4 checks passed
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.

docs: convert VirtualizedList stories helpers file to TS
3 participants