From 6dac0c7af1d0702d4f8b22de2276577bd704fe23 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 4 Feb 2024 19:54:21 +0100 Subject: [PATCH] fix build --- tools-public/toolpad/components/PieChart.tsx | 2 +- tools-public/toolpad/resources/updateMuiPaidSupport.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools-public/toolpad/components/PieChart.tsx b/tools-public/toolpad/components/PieChart.tsx index 1e91cdc..5fca548 100644 --- a/tools-public/toolpad/components/PieChart.tsx +++ b/tools-public/toolpad/components/PieChart.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createComponent } from '@mui/toolpad-core'; +import { createComponent } from '@mui/toolpad/browser'; import { PieChart, Pie, Cell, Tooltip } from 'recharts'; // Copied from https://wpdatatables.com/data-visualization-color-palette/ diff --git a/tools-public/toolpad/resources/updateMuiPaidSupport.ts b/tools-public/toolpad/resources/updateMuiPaidSupport.ts index 474c977..0c3b538 100644 --- a/tools-public/toolpad/resources/updateMuiPaidSupport.ts +++ b/tools-public/toolpad/resources/updateMuiPaidSupport.ts @@ -113,7 +113,7 @@ export async function updateMuiPaidSupport(issueId: string, repo: string, suppor }; } - const targetSupportKeyExpirationDate = new Date(rows[rowIndex][1]); + const targetSupportKeyExpirationDate = new Date(rows![rowIndex][1]); const today = new Date(); if (targetSupportKeyExpirationDate < today) {