mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
fixing type error
This commit is contained in:
parent
64fb930ead
commit
c9adaab234
1 changed files with 10 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue