File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 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>) => {
9999}
100100
101101export default function PageOrder ( ) {
102- const { id} = useParams ( ) ;
102+ const { id} = useParams < { id : string } > ( ) ;
103103 const [ order , setOrder ] = useState < any > ( { } ) ;
104104 const [ cartItems , setCartItems ] = useState < CartItem [ ] > ( [ ] ) ;
105105 const [ isLoading , setIsLoading ] = useState < boolean > ( true ) ;
@@ -185,4 +185,4 @@ export default function PageOrder() {
185185 </ TableContainer >
186186 </ PaperLayout >
187187 ) ;
188- }
188+ }
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ const emptyValues: any = ProductSchema.cast();
102102
103103export default function PageProductForm ( ) {
104104 const history = useHistory ( ) ;
105- const { id} = useParams ( ) ;
105+ const { id} = useParams < { id : string } > ( ) ;
106106 const [ product , setProduct ] = useState < Product | null > ( null ) ;
107107 const [ isLoading , setIsLoading ] = useState < boolean > ( true ) ;
108108
@@ -141,4 +141,4 @@ export default function PageProductForm() {
141141 </ Formik >
142142 </ PaperLayout >
143143 ) ;
144- }
144+ }
You can’t perform that action at this time.
0 commit comments