Remove invalid size prop from RechartsPortfolioPieChart component
All checks were successful
Build and Push Docker Images / docker (push) Successful in 2m27s

Fixed TypeScript error where size prop was being passed to RechartsPortfolioPieChart
but the component only accepts projects and totalTons props. The component is
responsive by default and doesn't need a size parameter.

This resolves the Docker build error:
Property 'size' does not exist on type 'IntrinsicAttributes & RechartsPortfolioPieChartProps'

Verified with tsc --noEmit that no other TypeScript errors exist.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Matt 2025-11-03 15:49:49 +01:00
parent 7faeb9b3f0
commit 94f422e540

View File

@ -451,7 +451,6 @@ export default function CheckoutSuccessPage() {
<RechartsPortfolioPieChart <RechartsPortfolioPieChart
projects={orderDetails.order.portfolio.projects} projects={orderDetails.order.portfolio.projects}
totalTons={order.tons} totalTons={order.tons}
size={280}
/> />
</div> </div>
</motion.div> </motion.div>