This commit is contained in:
Anthony Stirling 2025-10-31 13:18:11 +00:00
parent 8ec664d61f
commit 2148bc2b5c
2 changed files with 1 additions and 10 deletions

View File

@ -3,7 +3,6 @@ import { Modal, Text, ActionIcon, Tooltip } from '@mantine/core';
import { useMediaQuery } from '@mantine/hooks';
import { useNavigate, useLocation } from 'react-router-dom';
import LocalIcon from '@app/components/shared/LocalIcon';
import Overview from '@app/components/shared/config/configSections/Overview';
import { createConfigNavSections } from '@app/components/shared/config/configNavSections';
import { NavKey } from '@app/components/shared/config/types';
import { useAppConfig } from '@app/contexts/AppConfigContext';
@ -71,12 +70,6 @@ const AppConfigModal: React.FC<AppConfigModalProps> = ({ opened, onClose }) => {
headerBorder: 'var(--modal-header-border)',
}), []);
// Placeholder logout handler (not needed in open-source but keeps SaaS compatibility)
const handleLogout = () => {
// In SaaS this would sign out, in open-source it does nothing
console.log('Logout placeholder for SaaS compatibility');
};
// Get isAdmin and runningEE from app config
const isAdmin = config?.isAdmin ?? false;
const runningEE = config?.runningEE ?? false;

View File

@ -7,13 +7,11 @@ import TeamsSection from '@proprietary/components/shared/config/configSections/T
* Proprietary extension of createConfigNavSections that adds workspace sections
*/
export const createConfigNavSections = (
Overview: React.ComponentType<{ onLogoutClick: () => void }>,
onLogoutClick: () => void,
isAdmin: boolean = false,
runningEE: boolean = false
): ConfigNavSection[] => {
// Get the core sections
const sections = createCoreConfigNavSections(Overview, onLogoutClick, isAdmin, runningEE);
const sections = createCoreConfigNavSections(isAdmin, runningEE);
// Add Workspace section after Preferences (index 1)
const workspaceSection: ConfigNavSection = {