Code review tweaks

This commit is contained in:
Bradley Eaton
2025-07-05 17:52:41 +01:00
parent 9e420c5ba7
commit 972a2f8488
3 changed files with 14 additions and 6 deletions
@@ -15,6 +15,7 @@ import globalize from 'lib/globalize';
import browser from 'scripts/browser';
import Dashboard from 'utils/dashboard';
import shell from 'scripts/shell';
import keyboardNavigation from 'scripts/keyboardNavigation';
const UserSettingsPage: FC = () => {
const { user: currentUser } = useApi();
@@ -47,7 +48,7 @@ const UserSettingsPage: FC = () => {
}
// gamepad toggle unavailable on EdgeUWP, and smoothscroll unavailable on non-TV layout
const isControlsPageEmpty = browser.edgeUwp && !layoutManager.tv;
const isControlsPageEmpty = !keyboardNavigation.canEnableGamepad() && !layoutManager.tv;
return (
<Page