mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Move user settings menu to react
This commit is contained in:
parent
f008d803e8
commit
f5289c1386
11 changed files with 391 additions and 228 deletions
|
@ -17,9 +17,10 @@ import { Link } from 'react-router-dom';
|
|||
|
||||
import { appHost } from 'components/apphost';
|
||||
import { useApi } from 'hooks/useApi';
|
||||
import globalize from 'lib/globalize';
|
||||
import Dashboard from 'utils/dashboard';
|
||||
import { useQuickConnectEnabled } from 'hooks/useQuickConnect';
|
||||
import globalize from 'lib/globalize';
|
||||
import shell from 'scripts/shell';
|
||||
import Dashboard from 'utils/dashboard';
|
||||
|
||||
export const ID = 'app-user-menu';
|
||||
|
||||
|
@ -36,7 +37,7 @@ const AppUserMenu: FC<AppUserMenuProps> = ({
|
|||
const { data: isQuickConnectEnabled } = useQuickConnectEnabled();
|
||||
|
||||
const onClientSettingsClick = useCallback(() => {
|
||||
window.NativeShell?.openClientSettings();
|
||||
shell.openClientSettings();
|
||||
onMenuClose();
|
||||
}, [ onMenuClose ]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue