style: format code with consistent spacing and line breaks

This commit is contained in:
Jason
2025-10-30 15:31:08 +08:00
parent 8e4a0a1bbb
commit 55223bdd46
11 changed files with 37 additions and 34 deletions

View File

@@ -110,7 +110,8 @@ const McpFormModal: React.FC<McpFormModalProps> = ({
// 判断是否使用 TOML 格式
const useToml = appId === "codex";
const syncTargetLabel = appId === "claude" ? t("apps.codex") : t("apps.claude");
const syncTargetLabel =
appId === "claude" ? t("apps.codex") : t("apps.claude");
const otherAppType: AppId = appId === "claude" ? "codex" : "claude";
const syncCheckboxId = useMemo(() => `sync-other-side-${appId}`, [appId]);

View File

@@ -38,7 +38,8 @@ const McpPanel: React.FC<McpPanelProps> = ({ open, onOpenChange, appId }) => {
} | null>(null);
// Use MCP actions hook
const { servers, loading, reload, toggleEnabled, saveServer, deleteServer } = useMcpActions(appId);
const { servers, loading, reload, toggleEnabled, saveServer, deleteServer } =
useMcpActions(appId);
useEffect(() => {
const setup = async () => {
@@ -112,7 +113,8 @@ const McpPanel: React.FC<McpPanelProps> = ({ open, onOpenChange, appId }) => {
[serverEntries],
);
const panelTitle = appId === "claude" ? t("mcp.claudeTitle") : t("mcp.codexTitle");
const panelTitle =
appId === "claude" ? t("mcp.claudeTitle") : t("mcp.codexTitle");
return (
<>