feat(client): add button in user dropdown for swagger docs

This commit is contained in:
perf3ct 2025-06-26 19:23:24 +00:00
parent ff50fe1155
commit ddc93fa51a
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ import {
Error as ErrorIcon,
Label as LabelIcon,
Block as BlockIcon,
Api as ApiIcon,
} from '@mui/icons-material';
import { useNavigate, useLocation } from 'react-router-dom';
import { useAuth } from '../../contexts/AuthContext';
@ -530,6 +531,10 @@ const AppLayout: React.FC<AppLayoutProps> = ({ children }) => {
<SettingsIcon sx={{ mr: 2 }} /> Settings
</MenuItem>
<Divider />
<MenuItem onClick={() => window.open('/swagger-ui', '_blank')}>
<ApiIcon sx={{ mr: 2 }} /> API Documentation
</MenuItem>
<Divider />
<MenuItem onClick={handleLogout}>
<LogoutIcon sx={{ mr: 2 }} /> Logout
</MenuItem>