Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 46f27b5

Browse files
committedSep 20, 2024·
remove unnecessary TypeScript casting
1 parent 3c83c7d commit 46f27b5

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed
 

‎docs/data/base/components/modal/NestedModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const StyledBackdrop = styled(Backdrop)`
124124
`;
125125

126126
const style = {
127-
position: 'absolute' as 'absolute',
127+
position: 'absolute',
128128
top: '50%',
129129
left: '50%',
130130
transform: 'translate(-50%, -50%)',

‎docs/data/base/components/modal/SpringModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const grey = {
115115
};
116116

117117
const style = {
118-
position: 'absolute' as 'absolute',
118+
position: 'absolute',
119119
top: '50%',
120120
left: '50%',
121121
transform: 'translate(-50%, -50%)',

‎docs/data/base/components/modal/TransitionsModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const StyledBackdrop = styled(Backdrop)`
8686
`;
8787

8888
const style = {
89-
position: 'absolute' as 'absolute',
89+
position: 'absolute',
9090
top: '50%',
9191
left: '50%',
9292
transform: 'translate(-50%, -50%)',

‎docs/data/base/components/modal/UseModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const grey = {
198198
};
199199

200200
const style = {
201-
position: 'absolute' as 'absolute',
201+
position: 'absolute',
202202
top: '50%',
203203
left: '50%',
204204
transform: 'translate(-50%, -50%)',

‎docs/data/material/components/modal/BasicModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Typography from '@mui/material/Typography';
55
import Modal from '@mui/material/Modal';
66

77
const style = {
8-
position: 'absolute' as 'absolute',
8+
position: 'absolute',
99
top: '50%',
1010
left: '50%',
1111
transform: 'translate(-50%, -50%)',

‎docs/data/material/components/modal/KeepMountedModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Button from '@mui/material/Button';
55
import Typography from '@mui/material/Typography';
66

77
const style = {
8-
position: 'absolute' as 'absolute',
8+
position: 'absolute',
99
top: '50%',
1010
left: '50%',
1111
transform: 'translate(-50%, -50%)',

‎docs/data/material/components/modal/NestedModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Modal from '@mui/material/Modal';
44
import Button from '@mui/material/Button';
55

66
const style = {
7-
position: 'absolute' as 'absolute',
7+
position: 'absolute',
88
top: '50%',
99
left: '50%',
1010
transform: 'translate(-50%, -50%)',

‎docs/data/material/components/modal/SpringModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Fade = React.forwardRef<HTMLDivElement, FadeProps>(function Fade(props, re
4848
});
4949

5050
const style = {
51-
position: 'absolute' as 'absolute',
51+
position: 'absolute',
5252
top: '50%',
5353
left: '50%',
5454
transform: 'translate(-50%, -50%)',

‎docs/data/material/components/modal/TransitionsModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Button from '@mui/material/Button';
77
import Typography from '@mui/material/Typography';
88

99
const style = {
10-
position: 'absolute' as 'absolute',
10+
position: 'absolute',
1111
top: '50%',
1212
left: '50%',
1313
transform: 'translate(-50%, -50%)',

0 commit comments

Comments
 (0)
Please sign in to comment.