1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix review issues

This commit is contained in:
Bill Thornton 2022-06-17 02:31:13 -04:00
parent db7f385923
commit 5b5784a448
2 changed files with 5 additions and 3 deletions

View file

@ -13,7 +13,7 @@ const normalizePath = (pathname: string) => pathname.replace(/^!/, '');
* Refs: https://github.com/remix-run/react-router/blob/v6.3.0/packages/react-router-dom/index.tsx#L222
*/
export function HistoryRouter({ basename, children, history }: HistoryRouterProps) {
const [state, setState] = React.useState({
const [state, setState] = React.useState<Update>({
action: history.action,
location: history.location
});