fix(B7): remove unused code editor ref
This commit is contained in:
parent
784bb7d46a
commit
1fd1bf3ce6
@ -2,7 +2,7 @@
|
||||
* Monaco-based code strategy editor.
|
||||
* Users write a JS strategy function; "Run Backtest" posts it to /api/backtest.
|
||||
*/
|
||||
import { useState, useRef } from 'react';
|
||||
import { useState } from 'react';
|
||||
import Editor from '@monaco-editor/react';
|
||||
import { Play, Save, Copy, RotateCcw } from 'lucide-react';
|
||||
import { getPlatformAccessToken } from '../../lib/authSession';
|
||||
@ -66,7 +66,6 @@ export function CodeStrategyEditor({
|
||||
const [result, setResult] = useState<BacktestResult | null>(null);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
const [saved, setSaved] = useState(false);
|
||||
const editorRef = useRef<any>(null);
|
||||
|
||||
const handleRunBacktest = async () => {
|
||||
setRunning(true);
|
||||
@ -189,7 +188,6 @@ export function CodeStrategyEditor({
|
||||
setCode(v ?? '');
|
||||
setSaved(false);
|
||||
}}
|
||||
onMount={(editor) => { editorRef.current = editor; }}
|
||||
theme="light"
|
||||
options={{
|
||||
fontSize: 13,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user