1
0
Fork 0
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:
Bill Thornton 2025-03-28 10:05:36 -04:00
parent f008d803e8
commit f5289c1386
11 changed files with 391 additions and 228 deletions

View file

@ -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 ]);