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

Remove duplicate appRouter.param function

This commit is contained in:
Bill Thornton 2022-04-11 11:20:53 -04:00
parent 1ad87beaf6
commit 812b8f1c74
5 changed files with 10 additions and 24 deletions

View file

@ -1,11 +1,11 @@
import React, { FunctionComponent, useCallback, useEffect, useState } from 'react';
import { appRouter } from '../appRouter';
import SectionTitleLinkElement from '../dashboard/users/SectionTitleLinkElement';
import SectionTabs from '../dashboard/users/SectionTabs';
import UserPasswordForm from '../dashboard/users/UserPasswordForm';
import { getParameterByName } from '../../utils/url';
const UserPasswordPage: FunctionComponent = () => {
const userId = appRouter.param('userId');
const userId = getParameterByName('userId');
const [ userName, setUserName ] = useState('');
const loadUser = useCallback(() => {