Skip to content

Commit af05f56

Browse files
authored
feat: change e2e ci (#416)
Signed-off-by: zhaoxinxin <[email protected]>
1 parent b34c2da commit af05f56

File tree

2 files changed

+21
-30
lines changed

2 files changed

+21
-30
lines changed

src/components/rotation.tsx

+15-17
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Box, Grid, MobileStepper, ThemeProvider, createTheme } from '@mui/material';
22
import { useState } from 'react';
3-
import { autoPlay } from 'react-swipeable-views-utils';
43
import SwipeableViews from 'react-swipeable-views';
4+
import { autoPlay } from 'react-swipeable-views-utils';
55

66
const AutoPlaySwipeableViews = autoPlay(SwipeableViews);
77

@@ -68,22 +68,20 @@ export default function Rotation() {
6868
);
6969
})}
7070
</AutoPlaySwipeableViews>
71-
{
72-
<MobileStepper
73-
sx={{
74-
width: '50%',
75-
height: '6%',
76-
display: 'flex',
77-
alignItems: 'flex-start',
78-
justifyContent: 'center',
79-
backgroundColor: '#f6f7f9',
80-
}}
81-
backButton={undefined}
82-
nextButton={undefined}
83-
activeStep={imageIndex}
84-
steps={imageList?.length}
85-
/>
86-
}
71+
<MobileStepper
72+
sx={{
73+
width: '50%',
74+
height: '6%',
75+
display: 'flex',
76+
alignItems: 'flex-start',
77+
justifyContent: 'center',
78+
backgroundColor: '#f6f7f9',
79+
}}
80+
backButton={undefined}
81+
nextButton={undefined}
82+
activeStep={imageIndex}
83+
steps={imageList?.length}
84+
/>
8785
</Grid>
8886
</ThemeProvider>
8987
);

tsconfig.json

+6-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
9-
"types": [
10-
"cypress",
11-
"node"
12-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"types": ["cypress", "node"],
6+
"paths": {
7+
"react": ["./node_modules/@types/react"]
8+
},
139
"allowJs": true,
1410
"skipLibCheck": true,
1511
"esModuleInterop": true,
@@ -24,8 +20,5 @@
2420
"noEmit": true,
2521
"jsx": "react-jsx"
2622
},
27-
"include": [
28-
"src",
29-
"**/*.ts"
30-
]
23+
"include": ["src", "**/*.ts"]
3124
}

0 commit comments

Comments
 (0)