From 62a162f2afc6c4320e4928920608070044679805 Mon Sep 17 00:00:00 2001 From: Zeeshan Tamboli Date: Fri, 20 Sep 2024 14:32:08 +0530 Subject: [PATCH] [docs][Modal] Remove unnecessary type assertion (#43825) --- docs/data/base/components/modal/NestedModal.tsx | 2 +- docs/data/base/components/modal/SpringModal.tsx | 2 +- docs/data/base/components/modal/TransitionsModal.tsx | 2 +- docs/data/base/components/modal/UseModal.tsx | 2 +- docs/data/material/components/modal/BasicModal.tsx | 2 +- docs/data/material/components/modal/KeepMountedModal.tsx | 2 +- docs/data/material/components/modal/NestedModal.tsx | 2 +- docs/data/material/components/modal/SpringModal.tsx | 2 +- docs/data/material/components/modal/TransitionsModal.tsx | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/data/base/components/modal/NestedModal.tsx b/docs/data/base/components/modal/NestedModal.tsx index 9aabb2b3600ea7..4bca324c55f9a4 100644 --- a/docs/data/base/components/modal/NestedModal.tsx +++ b/docs/data/base/components/modal/NestedModal.tsx @@ -124,7 +124,7 @@ const StyledBackdrop = styled(Backdrop)` `; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/base/components/modal/SpringModal.tsx b/docs/data/base/components/modal/SpringModal.tsx index 44c2f280a8b452..4f4eded7ad6f89 100644 --- a/docs/data/base/components/modal/SpringModal.tsx +++ b/docs/data/base/components/modal/SpringModal.tsx @@ -115,7 +115,7 @@ const grey = { }; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/base/components/modal/TransitionsModal.tsx b/docs/data/base/components/modal/TransitionsModal.tsx index 8ddae33cd1d8d7..32ad8ec988af19 100644 --- a/docs/data/base/components/modal/TransitionsModal.tsx +++ b/docs/data/base/components/modal/TransitionsModal.tsx @@ -86,7 +86,7 @@ const StyledBackdrop = styled(Backdrop)` `; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/base/components/modal/UseModal.tsx b/docs/data/base/components/modal/UseModal.tsx index 0462704cf259e6..6faefd0c8d7417 100644 --- a/docs/data/base/components/modal/UseModal.tsx +++ b/docs/data/base/components/modal/UseModal.tsx @@ -198,7 +198,7 @@ const grey = { }; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/material/components/modal/BasicModal.tsx b/docs/data/material/components/modal/BasicModal.tsx index 2baa29914f93f3..d65efec6408e85 100644 --- a/docs/data/material/components/modal/BasicModal.tsx +++ b/docs/data/material/components/modal/BasicModal.tsx @@ -5,7 +5,7 @@ import Typography from '@mui/material/Typography'; import Modal from '@mui/material/Modal'; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/material/components/modal/KeepMountedModal.tsx b/docs/data/material/components/modal/KeepMountedModal.tsx index 1d4aab2eb37f16..d1c3187539a07c 100644 --- a/docs/data/material/components/modal/KeepMountedModal.tsx +++ b/docs/data/material/components/modal/KeepMountedModal.tsx @@ -5,7 +5,7 @@ import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/material/components/modal/NestedModal.tsx b/docs/data/material/components/modal/NestedModal.tsx index 28e36ebc817abd..ba0d00593d26e3 100644 --- a/docs/data/material/components/modal/NestedModal.tsx +++ b/docs/data/material/components/modal/NestedModal.tsx @@ -4,7 +4,7 @@ import Modal from '@mui/material/Modal'; import Button from '@mui/material/Button'; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/material/components/modal/SpringModal.tsx b/docs/data/material/components/modal/SpringModal.tsx index 31c07aadab1754..fb9b3687d2f1b1 100644 --- a/docs/data/material/components/modal/SpringModal.tsx +++ b/docs/data/material/components/modal/SpringModal.tsx @@ -48,7 +48,7 @@ const Fade = React.forwardRef(function Fade(props, re }); const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', diff --git a/docs/data/material/components/modal/TransitionsModal.tsx b/docs/data/material/components/modal/TransitionsModal.tsx index b67e1b2ee08d5f..8a2304e534bb0b 100644 --- a/docs/data/material/components/modal/TransitionsModal.tsx +++ b/docs/data/material/components/modal/TransitionsModal.tsx @@ -7,7 +7,7 @@ import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; const style = { - position: 'absolute' as 'absolute', + position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)',