Skip to content

Commit df7f75c

Browse files
committed
fix sx spread
1 parent 50f7e1d commit df7f75c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/x-date-pickers/src/internals/demo/DemoContainer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ export function DemoItem(props: DemoItemProps) {
8888
}
8989

9090
return (
91-
<Stack direction="column" spacing={spacing} sx={{ alignItems, ...sx }}>
91+
<Stack
92+
direction="column"
93+
spacing={spacing}
94+
sx={[{ alignItems }, ...(Array.isArray(sx) ? sx : [sx])]}
95+
>
9296
{label && <Typography variant="body2">{label}</Typography>}
9397
{children}
9498
</Stack>

0 commit comments

Comments
 (0)