feat(insight): refactor InteractionStyle to include insights and update related components

This commit is contained in:
DragonnZhang 2026-02-09 15:23:32 +08:00
parent af21e7fdd9
commit 2edce464ae
2 changed files with 5 additions and 6 deletions

View file

@ -36,8 +36,6 @@ function InsightApp({ data }) {
<StatsRow data={data} />
<DashboardCards insights={data} />
{data.qualitative && (
<>
<ProjectAreas
@ -48,11 +46,9 @@ function InsightApp({ data }) {
</>
)}
<HeatmapSection heatmap={data.heatmap} />
{data.qualitative && (
<>
<InteractionStyle qualitative={data.qualitative} />
<InteractionStyle qualitative={data.qualitative} insights={data} />
</>
)}

View file

@ -124,7 +124,7 @@ function ProjectAreas({ qualitative, topGoals, topTools }) {
);
}
function InteractionStyle({ qualitative }) {
function InteractionStyle({ qualitative, insights }) {
const { interactionStyle } = qualitative;
if (!interactionStyle) return null;
@ -147,6 +147,9 @@ function InteractionStyle({ qualitative }) {
</div>
)}
</div>
<DashboardCards insights={insights} />
<HeatmapSection heatmap={insights.heatmap} />
</>
);
}