fix(sf-06): MarketTab reorder — Competitors → BestLayouts → Velocity первыми
This commit is contained in:
parent
a4247e1d96
commit
81bf798c27
1 changed files with 25 additions and 25 deletions
|
|
@ -28,23 +28,20 @@ export function MarketTab({ data }: Props) {
|
|||
|
||||
return (
|
||||
<div style={{ display: "flex", flexDirection: "column", gap: 20 }}>
|
||||
{/* D4 (#36) — Pipeline 24mo */}
|
||||
{data.pipeline_24mo && <Pipeline24moBlock data={data.pipeline_24mo} />}
|
||||
|
||||
{/* Market trend */}
|
||||
{hasTrend && (
|
||||
<div
|
||||
style={{
|
||||
border: "1px solid #e5e7eb",
|
||||
borderRadius: 10,
|
||||
padding: "14px 18px",
|
||||
background: "#fff",
|
||||
}}
|
||||
>
|
||||
<MarketTrendBlock trend={data.market_trend} />
|
||||
{/* Competitors */}
|
||||
{data.competitors.length > 0 && (
|
||||
<div>
|
||||
<SectionLabel style={{ marginBottom: 12 }}>Конкуренты</SectionLabel>
|
||||
<CompetitorTable
|
||||
competitors={data.competitors}
|
||||
districtName={data.district?.district_name}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Issue #113 — data-driven ТЗ на проектирование */}
|
||||
<BestLayoutsBlock cadNum={data.cad_num} />
|
||||
|
||||
{/* D2 (#34) — Velocity-score */}
|
||||
{hasVelocity && (
|
||||
<div
|
||||
|
|
@ -59,17 +56,23 @@ export function MarketTab({ data }: Props) {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{/* Competitors */}
|
||||
{data.competitors.length > 0 && (
|
||||
<div>
|
||||
<SectionLabel style={{ marginBottom: 12 }}>Конкуренты</SectionLabel>
|
||||
<CompetitorTable
|
||||
competitors={data.competitors}
|
||||
districtName={data.district?.district_name}
|
||||
/>
|
||||
{/* Market trend */}
|
||||
{hasTrend && (
|
||||
<div
|
||||
style={{
|
||||
border: "1px solid #e5e7eb",
|
||||
borderRadius: 10,
|
||||
padding: "14px 18px",
|
||||
background: "#fff",
|
||||
}}
|
||||
>
|
||||
<MarketTrendBlock trend={data.market_trend} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* D4 (#36) — Pipeline 24mo */}
|
||||
{data.pipeline_24mo && <Pipeline24moBlock data={data.pipeline_24mo} />}
|
||||
|
||||
{/* Success recommendation */}
|
||||
{hasRecommendation && (
|
||||
<div>
|
||||
|
|
@ -82,9 +85,6 @@ export function MarketTab({ data }: Props) {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{/* Issue #113 — data-driven ТЗ на проектирование */}
|
||||
<BestLayoutsBlock cadNum={data.cad_num} />
|
||||
|
||||
{!hasAny && <EmptyState message="Рыночные данные недоступны" />}
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue