Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
Checks / checks (push) Successful in 2m11s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 04:23:53 +11:00
parent 3cd159a63e
commit a6ad8651b3
605 changed files with 11480 additions and 9125 deletions
+7 -12
View File
@@ -12,8 +12,8 @@ import {
OverlayCenter,
Text,
} from 'folds';
import { Icon, Icons, IconSrc } from '../../components/icons';
import FocusTrap from 'focus-trap-react';
import { Icon, Icons, IconSrc } from '../../components/icons';
import { General } from './general';
import { PageNav, PageNavContent, PageNavHeader, PageRoot } from '../../components/page';
import { ScreenSize, useScreenSizeContext } from '../../hooks/useScreenSize';
@@ -39,10 +39,7 @@ import { SETTINGS_SEARCH_CATALOG } from './settingsSearchCatalog';
import { SettingsPages } from './SettingsPages';
import { SettingsSearchResult } from './styles.css';
import { BreakWord } from '../../styles/Text.css';
import {
SettingsFocusProvider,
settingAnchorId,
} from '../../components/setting-tile';
import { SettingsFocusProvider, settingAnchorId } from '../../components/setting-tile';
export { SettingsPages };
@@ -101,7 +98,7 @@ const useSettingsMenuItems = (): SettingsMenuItem[] =>
icon: Icons.Info,
},
],
[]
[],
);
type SettingsProps = {
@@ -115,7 +112,7 @@ export function Settings({ initialPage, requestClose }: SettingsProps) {
const profile = useUserProfile(userId);
const displayName = profile.displayName ?? getMxIdLocalPart(userId) ?? userId;
const avatarUrl = profile.avatarUrl
? mxcUrlToHttp(mx, profile.avatarUrl, useAuthentication, 96, 96, 'crop') ?? undefined
? (mxcUrlToHttp(mx, profile.avatarUrl, useAuthentication, 96, 96, 'crop') ?? undefined)
: undefined;
const screenSize = useScreenSizeContext();
@@ -152,7 +149,7 @@ export function Settings({ initialPage, requestClose }: SettingsProps) {
anchorId: focusAnchorId,
setAnchorId: setFocusAnchorId,
}),
[focusAnchorId]
[focusAnchorId],
);
const handlePageRequestClose = () => {
@@ -175,7 +172,7 @@ export function Settings({ initialPage, requestClose }: SettingsProps) {
setActivePage(page);
setSearchQuery('');
},
[pageNameByPage]
[pageNameByPage],
);
// Fallback scroll if the page just mounted and tiles need a moment to render.
@@ -384,9 +381,7 @@ export function Settings({ initialPage, requestClose }: SettingsProps) {
{activePage === SettingsPages.NotificationPage && (
<Notifications requestClose={handlePageRequestClose} />
)}
{activePage === SettingsPages.AudioPage && (
<Audio requestClose={handlePageRequestClose} />
)}
{activePage === SettingsPages.AudioPage && <Audio requestClose={handlePageRequestClose} />}
{activePage === SettingsPages.DevicesPage && (
<Devices requestClose={handlePageRequestClose} />
)}