Skip to content

Commit

Permalink
feat: change e2e ci (#416)
Browse files Browse the repository at this point in the history
Signed-off-by: zhaoxinxin <1186037180@qq.com>
  • Loading branch information
Liam-Zhao authored Dec 6, 2024
1 parent b34c2da commit af05f56
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 30 deletions.
32 changes: 15 additions & 17 deletions src/components/rotation.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box, Grid, MobileStepper, ThemeProvider, createTheme } from '@mui/material';
import { useState } from 'react';
import { autoPlay } from 'react-swipeable-views-utils';
import SwipeableViews from 'react-swipeable-views';
import { autoPlay } from 'react-swipeable-views-utils';

const AutoPlaySwipeableViews = autoPlay(SwipeableViews);

Expand Down Expand Up @@ -68,22 +68,20 @@ export default function Rotation() {
);
})}
</AutoPlaySwipeableViews>
{
<MobileStepper
sx={{
width: '50%',
height: '6%',
display: 'flex',
alignItems: 'flex-start',
justifyContent: 'center',
backgroundColor: '#f6f7f9',
}}
backButton={undefined}
nextButton={undefined}
activeStep={imageIndex}
steps={imageList?.length}
/>
}
<MobileStepper
sx={{
width: '50%',
height: '6%',
display: 'flex',
alignItems: 'flex-start',
justifyContent: 'center',
backgroundColor: '#f6f7f9',
}}
backButton={undefined}
nextButton={undefined}
activeStep={imageIndex}
steps={imageList?.length}
/>
</Grid>
</ThemeProvider>
);
Expand Down
19 changes: 6 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"types": [
"cypress",
"node"
],
"lib": ["dom", "dom.iterable", "esnext"],
"types": ["cypress", "node"],
"paths": {
"react": ["./node_modules/@types/react"]
},
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
Expand All @@ -24,8 +20,5 @@
"noEmit": true,
"jsx": "react-jsx"
},
"include": [
"src",
"**/*.ts"
]
"include": ["src", "**/*.ts"]
}

0 comments on commit af05f56

Please sign in to comment.