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

Correct types in Datepicker #1517

Merged
merged 2 commits into from
Jan 6, 2023
Merged

Correct types in Datepicker #1517

merged 2 commits into from
Jan 6, 2023

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jan 5, 2023

The types of argTypes is derived from the type of the component properties.

@oliviertassinari oliviertassinari requested a deployment to remove-ts-ignore - toolpad-db PR #1517 January 5, 2023 10:19 — with Render Abandoned
@Janpot Janpot added the core Infrastructure work going on behind the scenes label Jan 5, 2023
@Janpot Janpot enabled auto-merge (squash) January 5, 2023 10:31
@@ -14,6 +14,7 @@ export interface Props extends DesktopDatePickerProps<string, Dayjs> {
variant: 'outlined' | 'filled' | 'standard';
size: 'small' | 'medium';
sx: any;
defaultValue: string;
Copy link
Member

Choose a reason for hiding this comment

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

Not from this PR but shouldn't this props object be called DatePickerProps instead of Props? Especially as it's being exported.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@Janpot Janpot disabled auto-merge January 6, 2023 13:55
@oliviertassinari oliviertassinari temporarily deployed to remove-ts-ignore - toolpad PR #1517 January 6, 2023 15:01 — with Render Destroyed
@Janpot Janpot enabled auto-merge (squash) January 6, 2023 15:10
@Janpot Janpot merged commit e2076ec into master Jan 6, 2023
@Janpot Janpot deleted the remove-ts-ignore branch January 6, 2023 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants