From 7051f572049b1fc62102a259d59f7a6feed0e0af Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Thu, 20 Mar 2025 15:39:10 +0800 Subject: [PATCH] refactor(WorkspaceEditorFooter): replace useCodeEditorStore with useProblemEditor --- .../playground/workspace/editor/components/footer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/features/playground/workspace/editor/components/footer.tsx b/src/components/features/playground/workspace/editor/components/footer.tsx index 65bb5b3..a95606c 100644 --- a/src/components/features/playground/workspace/editor/components/footer.tsx +++ b/src/components/features/playground/workspace/editor/components/footer.tsx @@ -2,17 +2,17 @@ import { cn } from "@/lib/utils"; import { useEffect, useState } from "react"; -import { useCodeEditorStore } from "@/store/useCodeEditorStore"; +import { useProblemEditor } from "@/hooks/use-problem-editor"; interface WorkspaceEditorFooterProps { className?: string; } -export default function WorkspaceEditorFooter({ +export function WorkspaceEditorFooter({ className, ...props }: WorkspaceEditorFooterProps) { - const { editor } = useCodeEditorStore(); + const { editor } = useProblemEditor(); const [position, setPosition] = useState<{ lineNumber: number; column: number } | null>(null); useEffect(() => {