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

[pickers] Migrate PickersPopper to emotion #26391

Merged
merged 4 commits into from
May 21, 2021

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented May 20, 2021

This is an internal component, so no need sx or ClassKey

add type to mark styleProps as required for this StyledComponent when rendered.

const PickersPopperPaper = styled(
  Paper,
  {},
  { skipSx: true },
)<{ styleProps: Pick<MuiPopperProps, 'placement'> }>(({ styleProps }) => ({
  ...styling
}));

@siriwatknp siriwatknp added the component: pickers This is the name of the generic UI component, not the React module! label May 20, 2021
@siriwatknp siriwatknp requested a review from mnajdova May 20, 2021 07:44
@mui-pr-bot
Copy link

mui-pr-bot commented May 20, 2021

Details of bundle changes (experimental)

Generated by 🚫 dangerJS against 1ebb8eb

onClick={onPaperClick}
onTouchStart={onPaperTouchStart}
styleProps={{ ...styleProps, placement }}
Copy link
Member Author

Choose a reason for hiding this comment

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

placement is not from props.

@siriwatknp siriwatknp requested a review from mnajdova May 20, 2021 09:27
@siriwatknp siriwatknp merged commit 0efe477 into mui:next May 21, 2021
@siriwatknp siriwatknp deleted the pickers-popper-emotion branch May 21, 2021 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants