File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed 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