fixing type error

This commit is contained in:
Khalim Conn-Kowlessar 2026-04-11 07:58:12 +00:00
parent 64fb930ead
commit c9adaab234

View file

@ -466,13 +466,16 @@ export default function CompletionTrendsChart({
{isStacked && (
<RechartsLegend
wrapperStyle={{ paddingTop: "12px", fontSize: "12px", color: "#6b7280" }}
iconType="square"
iconSize={10}
payload={categories.map((cat, i) => ({
value: cat,
type: "square" as const,
color: colors[i],
}))}
content={() => (
<ul style={{ display: "flex", flexWrap: "wrap", gap: "8px", padding: 0, margin: 0, listStyle: "none" }}>
{categories.map((cat, i) => (
<li key={cat} style={{ display: "flex", alignItems: "center", gap: "4px" }}>
<span style={{ display: "inline-block", width: 10, height: 10, backgroundColor: colors[i], flexShrink: 0 }} />
<span>{cat}</span>
</li>
))}
</ul>
)}
/>
)}
</Card>