Skip to content

ColorPicker.Dialog exporting ColorPickerDialog #3324

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

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

adids1221
Copy link
Contributor

@adids1221 adids1221 commented Oct 28, 2024

Description

ColorPicker.Dialog exporting ColorPickerDialog.
This export help us to use ColorPickerDialog after package build (usage for Doc's).
Checked by build:local package.

Changelog

ColorPicker.Dialog exporting ColorPickerDialog.

Additional info

None

Copy link
Collaborator

@ethanshar ethanshar left a comment

Choose a reason for hiding this comment

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

Wrote a small suggestion
Anyway approved


export default asBaseComponent<Props>(ColorPicker);
export default asBaseComponent<Props, {Dialog: typeof ColorPickerDialog}>(ColorPicker);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider setting the static types like this (like we do in Button component)

ComponentStatics<typeof ColorPicker>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed

@ethanshar ethanshar assigned adids1221 and unassigned ethanshar Oct 28, 2024
@adids1221 adids1221 merged commit daa2a10 into master Oct 29, 2024
1 check passed
@adids1221 adids1221 deleted the infra/ColorPicker.Dialog_build_export branch October 29, 2024 07:45
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