Skip to content

Commit cad82aa

Browse files
committed
updated typesript and useParams any typing
1 parent bb2bf09 commit cad82aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

06-rest-api/01-concepts/00-boilerplate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"npm-run-all": "^4.1.5",
5252
"rimraf": "^3.0.2",
5353
"style-loader": "^1.2.1",
54-
"typescript": "^3.9.5",
54+
"typescript": "^4.9.4",
5555
"url-loader": "^4.1.0",
5656
"webpack": "^4.43.0",
5757
"webpack-cli": "^3.3.12",

06-rest-api/01-concepts/00-boilerplate/src/pods/hotel/hotel.container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { HotelComponent } from './hotel.component';
99
export const HotelContainer: React.FunctionComponent = (props) => {
1010
const [hotel, setHotel] = React.useState<Hotel>(createEmptyHotel());
1111
const [cities, setCities] = React.useState<Lookup[]>([]);
12-
const { id } = useParams();
12+
const { id } = useParams<any>();
1313
const history = useHistory();
1414

1515
const handleLoadCityCollection = async () => {

0 commit comments

Comments
 (0)