Skip to content

Commit

Permalink
update styled args
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed May 21, 2021
1 parent 6ddfc3f commit 1ebb8eb
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/material-ui-lab/src/internal/pickers/PickersPopper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,13 @@ export interface PickerPopperProps extends ExportedPickerPopperProps, MuiPaperPr
onClose: () => void;
}

const PickersPopperRoot = styled(
Popper,
{},
{ skipSx: true },
)(({ theme }) => ({
const PickersPopperRoot = styled(Popper, { skipSx: true })(({ theme }) => ({
zIndex: theme.zIndex.modal,
}));

const PickersPopperPaper = styled(
Paper,
{},
{ skipSx: true },
)<{ styleProps: Pick<MuiPopperProps, 'placement'> }>(({ styleProps }) => ({
const PickersPopperPaper = styled(Paper, { skipSx: true })<{
styleProps: Pick<MuiPopperProps, 'placement'>;
}>(({ styleProps }) => ({
transformOrigin: 'top center',
outline: 0,
...(styleProps.placement === 'top' && {
Expand Down

0 comments on commit 1ebb8eb

Please sign in to comment.