Skip to content

Commit 5aa6192

Browse files
committed
Remove prettier-ignore directives from user-facing code
1 parent da64fea commit 5aa6192

File tree

3 files changed

+132
-21
lines changed

3 files changed

+132
-21
lines changed

docs/src/pages/system/basics/Why.js

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,56 @@ import Box from '@material-ui/core/Box';
44

55
export default function Why() {
66
return (
7-
/* prettier-ignore */
8-
<Box sx={{ bgcolor: 'background.paper', boxShadow: 1, borderRadius: 'borderRadius', p: 2, minWidth: 300 }}>
9-
<Box sx={{ color: 'text.secondary' }}>
7+
<Box
8+
sx={{
9+
bgcolor: 'background.paper',
10+
boxShadow: 1,
11+
borderRadius: 'borderRadius',
12+
p: 2,
13+
minWidth: 300,
14+
}}
15+
>
16+
<Box
17+
sx={{
18+
color: 'text.secondary',
19+
}}
20+
>
1021
Sessions
1122
</Box>
12-
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'fontWeightMedium' }}>
23+
<Box
24+
sx={{
25+
color: 'text.primary',
26+
fontSize: 34,
27+
fontWeight: 'fontWeightMedium',
28+
}}
29+
>
1330
98.3 K
1431
</Box>
15-
<Box component={TrendingUpIcon} sx={{ color: 'success.dark', fontSize: 16, verticalAlign: 'sub' }} />
16-
<Box sx={{ color: 'success.dark', display: 'inline', fontWeight: 'fontWeightMedium', mx: 0.5 }}>
32+
<Box
33+
component={TrendingUpIcon}
34+
sx={{
35+
color: 'success.dark',
36+
fontSize: 16,
37+
verticalAlign: 'sub',
38+
}}
39+
/>
40+
<Box
41+
sx={{
42+
color: 'success.dark',
43+
display: 'inline',
44+
fontWeight: 'fontWeightMedium',
45+
mx: 0.5,
46+
}}
47+
>
1748
18.77%
1849
</Box>
19-
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 12 }}>
50+
<Box
51+
sx={{
52+
color: 'text.secondary',
53+
display: 'inline',
54+
fontSize: 12,
55+
}}
56+
>
2057
vs last week
2158
</Box>
2259
</Box>

docs/src/pages/system/basics/Why.tsx

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,56 @@ import Box from '@material-ui/core/Box';
44

55
export default function Why() {
66
return (
7-
/* prettier-ignore */
8-
<Box sx={{ bgcolor: 'background.paper', boxShadow: 1, borderRadius: 'borderRadius', p: 2, minWidth: 300 }}>
9-
<Box sx={{ color: 'text.secondary' }}>
7+
<Box
8+
sx={{
9+
bgcolor: 'background.paper',
10+
boxShadow: 1,
11+
borderRadius: 'borderRadius',
12+
p: 2,
13+
minWidth: 300,
14+
}}
15+
>
16+
<Box
17+
sx={{
18+
color: 'text.secondary',
19+
}}
20+
>
1021
Sessions
1122
</Box>
12-
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'fontWeightMedium' }}>
23+
<Box
24+
sx={{
25+
color: 'text.primary',
26+
fontSize: 34,
27+
fontWeight: 'fontWeightMedium',
28+
}}
29+
>
1330
98.3 K
1431
</Box>
15-
<Box component={TrendingUpIcon} sx={{ color: 'success.dark', fontSize: 16, verticalAlign: 'sub' }} />
16-
<Box sx={{ color: 'success.dark', display: 'inline', fontWeight: 'fontWeightMedium', mx: 0.5 }}>
32+
<Box
33+
component={TrendingUpIcon}
34+
sx={{
35+
color: 'success.dark',
36+
fontSize: 16,
37+
verticalAlign: 'sub',
38+
}}
39+
/>
40+
<Box
41+
sx={{
42+
color: 'success.dark',
43+
display: 'inline',
44+
fontWeight: 'fontWeightMedium',
45+
mx: 0.5,
46+
}}
47+
>
1748
18.77%
1849
</Box>
19-
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 12 }}>
50+
<Box
51+
sx={{
52+
color: 'text.secondary',
53+
display: 'inline',
54+
fontSize: 12,
55+
}}
56+
>
2057
vs last week
2158
</Box>
2259
</Box>

docs/src/pages/system/basics/basics.md

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,56 @@ return (
9696
2. ✅ using the system:
9797

9898
```jsx
99-
/* prettier-ignore */
100-
<Box sx={{ bgcolor: 'background.paper', boxShadow: 1, borderRadius: 'borderRadius', p: 2, minWidth: 300 }}>
101-
<Box sx={{ color: 'text.secondary' }}>
99+
<Box
100+
sx={{
101+
bgcolor: 'background.paper',
102+
boxShadow: 1,
103+
borderRadius: 'borderRadius',
104+
p: 2,
105+
minWidth: 300,
106+
}}
107+
>
108+
<Box
109+
sx={{
110+
color: 'text.secondary',
111+
}}
112+
>
102113
Sessions
103114
</Box>
104-
<Box sx={{ color: 'text.primary', fontSize: 34, fontWeight: 'fontWeightMedium' }}>
115+
<Box
116+
sx={{
117+
color: 'text.primary',
118+
fontSize: 34,
119+
fontWeight: 'fontWeightMedium',
120+
}}
121+
>
105122
98.3 K
106123
</Box>
107-
<Box component={TrendingUpIcon} sx={{ color: 'success.dark', fontSize: 16, verticalAlign: 'sub' }} />
108-
<Box sx={{ color: 'success.dark', display: 'inline', fontWeight: 'fontWeightMedium', mx: 0.5 }}>
124+
<Box
125+
component={TrendingUpIcon}
126+
sx={{
127+
color: 'success.dark',
128+
fontSize: 16,
129+
verticalAlign: 'sub',
130+
}}
131+
/>
132+
<Box
133+
sx={{
134+
color: 'success.dark',
135+
display: 'inline',
136+
fontWeight: 'fontWeightMedium',
137+
mx: 0.5,
138+
}}
139+
>
109140
18.77%
110141
</Box>
111-
<Box sx={{ color: 'text.secondary', display: 'inline', fontSize: 12 }}>
142+
<Box
143+
sx={{
144+
color: 'text.secondary',
145+
display: 'inline',
146+
fontSize: 12,
147+
}}
148+
>
112149
vs last week
113150
</Box>
114151
</Box>

0 commit comments

Comments
 (0)