refactor(ui): normalize backtest runner action
This commit is contained in:
parent
979983d3ef
commit
3d97e9a0d8
@ -3,6 +3,7 @@ import { BacktestConfigurator } from './BacktestConfigurator';
|
|||||||
import { BacktestResultsDashboard } from './BacktestResultsDashboard';
|
import { BacktestResultsDashboard } from './BacktestResultsDashboard';
|
||||||
import { runBacktestApi } from '../api';
|
import { runBacktestApi } from '../api';
|
||||||
import type { BacktestRequestPayload, BacktestResult } from '../types';
|
import type { BacktestRequestPayload, BacktestResult } from '../types';
|
||||||
|
import { Button } from '../../components/ui/Primitives';
|
||||||
|
|
||||||
interface BacktestRunnerPanelProps {
|
interface BacktestRunnerPanelProps {
|
||||||
profileId?: string;
|
profileId?: string;
|
||||||
@ -46,12 +47,14 @@ export const BacktestRunnerPanel: React.FC<BacktestRunnerPanelProps> = ({
|
|||||||
<p className="text-xs text-zinc-400">Read-only deterministic replay. No broker calls. No production table writes.</p>
|
<p className="text-xs text-zinc-400">Read-only deterministic replay. No broker calls. No production table writes.</p>
|
||||||
</div>
|
</div>
|
||||||
{onClose && (
|
{onClose && (
|
||||||
<button
|
<Button
|
||||||
|
type="button"
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
className="rounded-lg border border-white/10 px-3 py-1 text-[11px] font-bold uppercase tracking-wide text-zinc-300 hover:bg-white/10"
|
variant="outline"
|
||||||
|
size="sm"
|
||||||
>
|
>
|
||||||
Close
|
Close
|
||||||
</button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -74,4 +77,3 @@ export const BacktestRunnerPanel: React.FC<BacktestRunnerPanelProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user