From 1ebb8ebf038ec743919ce748e344261389019cdc Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Fri, 21 May 2021 10:56:10 +0700 Subject: [PATCH] update styled args --- .../src/internal/pickers/PickersPopper.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/material-ui-lab/src/internal/pickers/PickersPopper.tsx b/packages/material-ui-lab/src/internal/pickers/PickersPopper.tsx index 9cfee217eeb38c..425b82f345e263 100644 --- a/packages/material-ui-lab/src/internal/pickers/PickersPopper.tsx +++ b/packages/material-ui-lab/src/internal/pickers/PickersPopper.tsx @@ -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 }>(({ styleProps }) => ({ +const PickersPopperPaper = styled(Paper, { skipSx: true })<{ + styleProps: Pick; +}>(({ styleProps }) => ({ transformOrigin: 'top center', outline: 0, ...(styleProps.placement === 'top' && {