File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 44
44
"react-scripts" : " 3.4.1" ,
45
45
"serverless" : " ^2.29.0" ,
46
46
"serverless-finch" : " ^2.6.0" ,
47
- "typescript" : " ~3.7.2 " ,
47
+ "typescript" : " ~4.3.5 " ,
48
48
"yup" : " ^0.29.1"
49
49
},
50
50
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ const Form = (props: FormikProps<FormikValues>) => {
99
99
}
100
100
101
101
export default function PageOrder ( ) {
102
- const { id} = useParams ( ) ;
102
+ const { id} = useParams < { id : string } > ( ) ;
103
103
const [ order , setOrder ] = useState < any > ( { } ) ;
104
104
const [ cartItems , setCartItems ] = useState < CartItem [ ] > ( [ ] ) ;
105
105
const [ isLoading , setIsLoading ] = useState < boolean > ( true ) ;
@@ -185,4 +185,4 @@ export default function PageOrder() {
185
185
</ TableContainer >
186
186
</ PaperLayout >
187
187
) ;
188
- }
188
+ }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ const emptyValues: any = ProductSchema.cast();
102
102
103
103
export default function PageProductForm ( ) {
104
104
const history = useHistory ( ) ;
105
- const { id} = useParams ( ) ;
105
+ const { id} = useParams < { id : string } > ( ) ;
106
106
const [ product , setProduct ] = useState < Product | null > ( null ) ;
107
107
const [ isLoading , setIsLoading ] = useState < boolean > ( true ) ;
108
108
@@ -141,4 +141,4 @@ export default function PageProductForm() {
141
141
</ Formik >
142
142
</ PaperLayout >
143
143
) ;
144
- }
144
+ }
You can’t perform that action at this time.
0 commit comments