fix(live): remount strategy detail when switching focused strategy
Keying LiveStrategyDetail by strategy name resets its child state (trade-log pagination), so switching strategies no longer keeps the previous page index. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -176,7 +176,7 @@ export function LivePage() {
|
|||||||
|
|
||||||
<section className="liveDetail">
|
<section className="liveDetail">
|
||||||
{focused ? (
|
{focused ? (
|
||||||
<LiveStrategyDetail strategy={focused} />
|
<LiveStrategyDetail key={focused.name} strategy={focused} />
|
||||||
) : (
|
) : (
|
||||||
<div className="panel emptyState">
|
<div className="panel emptyState">
|
||||||
<Wallet size={40} />
|
<Wallet size={40} />
|
||||||
|
|||||||
@@ -2227,6 +2227,7 @@ input:focus {
|
|||||||
.liveListMeta {
|
.liveListMeta {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
gap: 8px;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
color: #6f7c8f;
|
color: #6f7c8f;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|||||||
Reference in New Issue
Block a user