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(tab):Generic type id added to tabItem #216

Closed
wants to merge 2 commits into from
Closed

Conversation

@tatata96 tatata96 self-assigned this Dec 5, 2022
@tatata96 tatata96 added the W.I.P Work in progress label Dec 5, 2022
@github-actions
Copy link

github-actions bot commented Dec 5, 2022

PR Preview Action v1.2.0
Preview removed because the pull request was closed.
2023-01-18 07:43 UTC

@tatata96 tatata96 added ready for review and removed W.I.P Work in progress labels Jan 13, 2023
@tatata96 tatata96 changed the base branch from main to next-release January 13, 2023 10:51
Comment on lines +52 to +53
console.log(items);

Copy link
Contributor

Choose a reason for hiding this comment

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

We can remove this I think

@@ -136,7 +136,7 @@ export type ButtonProps = ButtonComponentProps;
export type DescriptionTermProps = DescriptionTermComponentProps;
export type FileUploadButtonProps = FileUploadButtonComponentProps;
export type SpinnerProps = SpinnerComponentProps;
export type TabItem = TabComponentItem;
export type TabItem <ID = number|string> = TabComponentItem <ID>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you run prettify formatter to format all the files?

I think we can define the generic type for TabItem in Tab file instead of index.tsx:

export type TabItem<ID = number | string> = {
  id: ID;
  ...
};

@tatata96 tatata96 closed this Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants