+ {t('RoomSettings.sections')}
{menuItems.map((item) => (
- }
+ icon={item.icon}
+ label={item.name}
+ active={activePage === item.page}
onClick={() => setActivePage(item.page)}
- >
-
- {item.name}
-
-
+ />
))}
diff --git a/src/app/features/space-settings/SpaceSettings.tsx b/src/app/features/space-settings/SpaceSettings.tsx
index 0a4f6d54..2b942e59 100644
--- a/src/app/features/space-settings/SpaceSettings.tsx
+++ b/src/app/features/space-settings/SpaceSettings.tsx
@@ -1,8 +1,13 @@
import React, { useMemo, useState } from 'react';
-import { Avatar, Box, config, Icon, IconButton, Icons, IconSrc, MenuItem, Text } from 'folds';
+import { Avatar, Box, Icon, IconButton, Icons, IconSrc, Text } from 'folds';
import { JoinRule } from 'matrix-js-sdk';
import { useTranslation } from 'react-i18next';
import { PageNav, PageNavContent, PageNavHeader, PageRoot } from '../../components/page';
+import {
+ SettingsNavEyebrow,
+ SettingsNavItem,
+ SettingsNavSection,
+} from '../common-settings/SettingsNav';
import { ScreenSize, useScreenSizeContext } from '../../hooks/useScreenSize';
import { useMatrixClient } from '../../hooks/useMatrixClient';
import { mxcUrlToHttp } from '../../utils/matrix';
@@ -63,6 +68,7 @@ type SpaceSettingsProps = {
requestClose: () => void;
};
export function SpaceSettings({ initialPage, requestClose }: SpaceSettingsProps) {
+ const { t } = useTranslation();
const room = useRoom();
const mx = useMatrixClient();
const useAuthentication = useMediaAuthentication();
@@ -98,8 +104,8 @@ export function SpaceSettings({ initialPage, requestClose }: SpaceSettingsProps)
screenSize === ScreenSize.Mobile && activePage !== undefined ? undefined : (