mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-21 15:55:50 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,23 +1,17 @@
|
||||
import * as React from 'react'
|
||||
import { Box, Text, stringWidth } from '@anthropic/ink'
|
||||
import TextInput from '../TextInput.js'
|
||||
import * as React from 'react';
|
||||
import { Box, Text, stringWidth } from '@anthropic/ink';
|
||||
import TextInput from '../TextInput.js';
|
||||
|
||||
type Props = {
|
||||
value: string
|
||||
onChange: (value: string) => void
|
||||
historyFailedMatch: boolean
|
||||
}
|
||||
value: string;
|
||||
onChange: (value: string) => void;
|
||||
historyFailedMatch: boolean;
|
||||
};
|
||||
|
||||
function HistorySearchInput({
|
||||
value,
|
||||
onChange,
|
||||
historyFailedMatch,
|
||||
}: Props): React.ReactNode {
|
||||
function HistorySearchInput({ value, onChange, historyFailedMatch }: Props): React.ReactNode {
|
||||
return (
|
||||
<Box gap={1}>
|
||||
<Text dimColor>
|
||||
{historyFailedMatch ? 'no matching prompt:' : 'search prompts:'}
|
||||
</Text>
|
||||
<Text dimColor>{historyFailedMatch ? 'no matching prompt:' : 'search prompts:'}</Text>
|
||||
<TextInput
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
@@ -31,7 +25,7 @@ function HistorySearchInput({
|
||||
dimColor={true}
|
||||
/>
|
||||
</Box>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
export default HistorySearchInput
|
||||
export default HistorySearchInput;
|
||||
|
||||
Reference in New Issue
Block a user