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:
@@ -972,13 +972,7 @@ export function FileViewer({
|
|||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
remarkPlugins={[remarkGfm]}
|
remarkPlugins={[remarkGfm]}
|
||||||
components={{
|
components={{
|
||||||
code({
|
code({ inline, className, children, ...props }) {
|
||||||
node,
|
|
||||||
inline,
|
|
||||||
className,
|
|
||||||
children,
|
|
||||||
...props
|
|
||||||
}) {
|
|
||||||
const match = /language-(\w+)/.exec(
|
const match = /language-(\w+)/.exec(
|
||||||
className || "",
|
className || "",
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -50,10 +50,6 @@ export function TerminalWindow({
|
|||||||
closeWindow(windowId);
|
closeWindow(windowId);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMinimize = () => {
|
|
||||||
minimizeWindow(windowId);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleMaximize = () => {
|
const handleMaximize = () => {
|
||||||
maximizeWindow(windowId);
|
maximizeWindow(windowId);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user