fix comment

This commit is contained in:
DennisYu07 2026-03-25 11:08:23 +08:00
parent a0b3cc3268
commit 50ade83e4d
8 changed files with 232 additions and 288 deletions

View file

@ -6,7 +6,6 @@
import { Box, Text } from 'ink';
import { theme } from '../../semantic-colors.js';
import { useKeypress } from '../../hooks/useKeypress.js';
import { useTerminalSize } from '../../hooks/useTerminalSize.js';
import type { HookConfigDisplayInfo, HookEventDisplayInfo } from './types.js';
import { HooksConfigSource } from '@qwen-code/qwen-code-core';
@ -15,25 +14,14 @@ import { t } from '../../../i18n/index.js';
interface HookConfigDetailStepProps {
hookEvent: HookEventDisplayInfo;
hookConfig: HookConfigDisplayInfo;
onBack: () => void;
}
export function HookConfigDetailStep({
hookEvent,
hookConfig,
onBack,
}: HookConfigDetailStepProps): React.JSX.Element {
const { columns: terminalWidth } = useTerminalSize();
useKeypress(
(key) => {
if (key.name === 'escape') {
onBack();
}
},
{ isActive: true },
);
// Get source display
const getSourceDisplay = (): string => {
switch (hookConfig.source) {