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,13 +1,13 @@
|
||||
import React from 'react'
|
||||
import { pathToFileURL } from 'url'
|
||||
import { Link } from '@anthropic/ink'
|
||||
import React from 'react';
|
||||
import { pathToFileURL } from 'url';
|
||||
import { Link } from '@anthropic/ink';
|
||||
|
||||
type Props = {
|
||||
/** The absolute file path */
|
||||
filePath: string
|
||||
filePath: string;
|
||||
/** Optional display text (defaults to filePath) */
|
||||
children?: React.ReactNode
|
||||
}
|
||||
children?: React.ReactNode;
|
||||
};
|
||||
|
||||
/**
|
||||
* Renders a file path as an OSC 8 hyperlink.
|
||||
@@ -15,5 +15,5 @@ type Props = {
|
||||
* even when they appear inside parentheses or other text.
|
||||
*/
|
||||
export function FilePathLink({ filePath, children }: Props): React.ReactNode {
|
||||
return <Link url={pathToFileURL(filePath).href}>{children ?? filePath}</Link>
|
||||
return <Link url={pathToFileURL(filePath).href}>{children ?? filePath}</Link>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user