Skip to content

Commit 5adb229

Browse files
yuanjackie1jasnoo
authored andcommitted
Full TS implementation in RouteDescription.tsx
1 parent ac5aaf7 commit 5adb229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/RouteDescription.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type RouteProps = {
77
const RouteDescription = (props: RouteProps): JSX.Element => {
88
// Use new URL to use the url.pathname method.
99
const { actions } = props;
10-
const url = new URL(actions[0].props.routePath);
10+
const url: URL = new URL(actions[0].props.routePath);
1111
return (
1212
<div className='routedescription'>
1313
<h3 className='route'>Route: {url.pathname}</h3>

0 commit comments

Comments
 (0)