fix: remove 2 unused variables in FileViewer and TerminalWindow

- FileViewer.tsx: remove unused node parameter from code component
- TerminalWindow.tsx: remove unused handleMinimize function

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-09 20:18:59 +08:00
parent 9896653232
commit af66f1eaec
2 changed files with 1 additions and 11 deletions

View File

@@ -972,13 +972,7 @@ export function FileViewer({
<ReactMarkdown
remarkPlugins={[remarkGfm]}
components={{
code({
node,
inline,
className,
children,
...props
}) {
code({ inline, className, children, ...props }) {
const match = /language-(\w+)/.exec(
className || "",
);

View File

@@ -50,10 +50,6 @@ export function TerminalWindow({
closeWindow(windowId);
};
const handleMinimize = () => {
minimizeWindow(windowId);
};
const handleMaximize = () => {
maximizeWindow(windowId);
};