From 840975c9662f7d5e6ebf1ff16a3b26f219344cf8 Mon Sep 17 00:00:00 2001 From: Jannis Hell Date: Tue, 20 Jun 2023 15:08:50 +0200 Subject: [PATCH] [docs] Switch order of snackbar buttons in demos (#37389) Signed-off-by: Jannis Hell Co-authored-by: ZeeshanTamboli Co-authored-by: zanivan --- .../components/snackbars/DirectionSnackbar.js | 24 ++++- .../snackbars/DirectionSnackbar.tsx | 24 ++++- .../snackbars/DirectionSnackbar.tsx.preview | 11 --- .../snackbars/PositionedSnackbar.js | 95 +++++++++---------- .../snackbars/PositionedSnackbar.tsx | 95 +++++++++---------- .../snackbars/PositionedSnackbar.tsx.preview | 3 +- 6 files changed, 134 insertions(+), 118 deletions(-) delete mode 100644 docs/data/material/components/snackbars/DirectionSnackbar.tsx.preview diff --git a/docs/data/material/components/snackbars/DirectionSnackbar.js b/docs/data/material/components/snackbars/DirectionSnackbar.js index fb0aff35dcf1e2..ddcdfb8068bda6 100644 --- a/docs/data/material/components/snackbars/DirectionSnackbar.js +++ b/docs/data/material/components/snackbars/DirectionSnackbar.js @@ -1,4 +1,6 @@ import * as React from 'react'; +import Box from '@mui/material/Box'; +import Grid from '@mui/material/Grid'; import Button from '@mui/material/Button'; import Snackbar from '@mui/material/Snackbar'; import Slide from '@mui/material/Slide'; @@ -34,10 +36,24 @@ export default function DirectionSnackbar() { return (
- - - - + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + Right - - - - \ No newline at end of file diff --git a/docs/data/material/components/snackbars/PositionedSnackbar.js b/docs/data/material/components/snackbars/PositionedSnackbar.js index ad9ee42a3392ac..32eb132c936afb 100644 --- a/docs/data/material/components/snackbars/PositionedSnackbar.js +++ b/docs/data/material/components/snackbars/PositionedSnackbar.js @@ -1,6 +1,8 @@ import * as React from 'react'; +import Grid from '@mui/material/Grid'; import Button from '@mui/material/Button'; import Snackbar from '@mui/material/Snackbar'; +import Box from '@mui/material/Box'; export default function PositionedSnackbar() { const [state, setState] = React.useState({ @@ -20,60 +22,55 @@ export default function PositionedSnackbar() { const buttons = ( - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); return (
- {buttons} + {buttons} + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + ); return (
- {buttons} + {buttons} + {buttons} +