Skip to content

Commit

Permalink
Merge pull request #29 from vladshcherbin/typescript-errors
Browse files Browse the repository at this point in the history
Update ts version
  • Loading branch information
SergeyKovalchuk authored Aug 15, 2021
2 parents f5749cf + 4553a25 commit ae039bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"react-scripts": "3.4.1",
"serverless": "^2.29.0",
"serverless-finch": "^2.6.0",
"typescript": "~3.7.2",
"typescript": "~4.3.5",
"yup": "^0.29.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/pages/PageOrder/PageOrder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Form = (props: FormikProps<FormikValues>) => {
}

export default function PageOrder() {
const {id} = useParams();
const {id} = useParams<{ id: string }>();
const [order, setOrder] = useState<any>({});
const [cartItems, setCartItems] = useState<CartItem[]>([]);
const [isLoading, setIsLoading] = useState<boolean>(true);
Expand Down Expand Up @@ -185,4 +185,4 @@ export default function PageOrder() {
</TableContainer>
</PaperLayout>
);
}
}
4 changes: 2 additions & 2 deletions src/components/pages/PageProductForm/PageProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const emptyValues: any = ProductSchema.cast();

export default function PageProductForm() {
const history = useHistory();
const {id} = useParams();
const {id} = useParams<{ id: string }>();
const [product, setProduct] = useState<Product | null>(null);
const [isLoading, setIsLoading] = useState<boolean>(true);

Expand Down Expand Up @@ -141,4 +141,4 @@ export default function PageProductForm() {
</Formik>
</PaperLayout>
);
}
}

0 comments on commit ae039bb

Please sign in to comment.