diff --git a/src/components/editor/editor.tsx b/src/components/editor/editor.tsx index 6030ef0..21330b0 100644 --- a/src/components/editor/editor.tsx +++ b/src/components/editor/editor.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useMemo } from "react"; +import { useCallback, useMemo } from "react"; import { useStore } from "@/store/useStore"; import MonacoEditor, { OnMount } from "@monaco-editor/react"; diff --git a/src/components/nav-buttons.tsx b/src/components/nav-buttons.tsx index 0bab242..2ab16e7 100644 --- a/src/components/nav-buttons.tsx +++ b/src/components/nav-buttons.tsx @@ -7,7 +7,7 @@ import Settings from "./settings"; import { ReplaceIcon, PlayIcon, - TrashIcon, + Trash2Icon, LoaderCircleIcon } from "lucide-react"; @@ -44,23 +44,28 @@ const ButtonsNav = () => { disabled={isCodeExecuting} icon={ isCodeExecuting ? ( - + ) : ( - + ) } label="Run" + title="Execute Python Code" /> } + icon={} label="Clear Terminal" + title="Clear Terminal" /> } - label="Toggle Direction" + icon={} + label={ + direction.substring(0, 1).toUpperCase() + direction.substring(1) + } + title="Change direction" />
@@ -76,18 +81,21 @@ const NavButton = memo( onClick, disabled, icon, - label + label, + title }: { onClick: () => void; disabled?: boolean; icon: React.ReactNode; label: string; + title: string; }) => (