mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import figures from 'figures'
|
||||
import * as React from 'react'
|
||||
import { Box, Text, StatusIcon } from '@anthropic/ink'
|
||||
import type { ContextSuggestion } from '../utils/contextSuggestions.js'
|
||||
import { formatTokens } from '../utils/format.js'
|
||||
import figures from 'figures';
|
||||
import * as React from 'react';
|
||||
import { Box, Text, StatusIcon } from '@anthropic/ink';
|
||||
import type { ContextSuggestion } from '../utils/contextSuggestions.js';
|
||||
import { formatTokens } from '../utils/format.js';
|
||||
|
||||
type Props = {
|
||||
suggestions: ContextSuggestion[]
|
||||
}
|
||||
suggestions: ContextSuggestion[];
|
||||
};
|
||||
|
||||
export function ContextSuggestions({ suggestions }: Props): React.ReactNode {
|
||||
if (suggestions.length === 0) return null
|
||||
if (suggestions.length === 0) return null;
|
||||
|
||||
return (
|
||||
<Box flexDirection="column" marginTop={1}>
|
||||
@@ -22,8 +22,7 @@ export function ContextSuggestions({ suggestions }: Props): React.ReactNode {
|
||||
{suggestion.savingsTokens ? (
|
||||
<Text dimColor>
|
||||
{' '}
|
||||
{figures.arrowRight} save ~
|
||||
{formatTokens(suggestion.savingsTokens)}
|
||||
{figures.arrowRight} save ~{formatTokens(suggestion.savingsTokens)}
|
||||
</Text>
|
||||
) : null}
|
||||
</Box>
|
||||
@@ -33,5 +32,5 @@ export function ContextSuggestions({ suggestions }: Props): React.ReactNode {
|
||||
</Box>
|
||||
))}
|
||||
</Box>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user