Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fixes build errors

Paul Copplestonef649feb9d476
diff --git a/www/data/BetaPage.js b/www/data/BetaPage.js
index 614d134c678..9832a8c5e74 100644
--- a/www/data/BetaPage.js
+++ b/www/data/BetaPage.js
@@ -48,11 +48,11 @@ export const AlphaNumbers = [
width="24"
height="24"
stroke="white"
- stroke-width="2"
+ strokeWidth="2"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
- Class="css-i6dzq1"
+ className="css-i6dzq1"
>
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14" />
<polyline points="22 4 12 14.01 9 11.01" />
@@ -115,7 +115,7 @@ export const AlphaNumbers = [
width="24"
height="24"
stroke="white"
- stroke-width="2"
+ strokeWidth="2"
fill="none"
strokeLinecap="round"
strokeLinejoin="round"
diff --git a/www/pages/beta.tsx b/www/pages/beta.tsx
index 6f785682c0d..f1af3caa142 100644
--- a/www/pages/beta.tsx
+++ b/www/pages/beta.tsx
@@ -105,15 +105,24 @@ const Performance = () => {
text?: string,
}
- const renderCustomizedLabel = (props: labelProps) => {
- const { x, y, width, text } = props;
- const radius = 10;
-
+ function renderCustomizedLabel(props: any): any {
+ const { width, text } = props
+ const radius = 10
+
+ let x: number = props.x + width / 2
+ let y: number = props.y - radius
return (
- <text x={x + width / 2} y={y - radius} fill="#000" textAnchor="middle" dominantBaseline="middle" fontSize={14}>
+ <text
+ x={x}
+ y={y}
+ fill="#000"
+ textAnchor="middle"
+ dominantBaseline="middle"
+ fontSize={14}
+ >
Read
</text>
- );
+ )
};
// Documentation on recharts:
@@ -134,13 +143,13 @@ const Performance = () => {
<Tooltip />
{/* <Legend /> */}
<Bar dataKey="read" name="Read" barSize={20} unit=" requests/s">
- {PerformanceComparisonData.map((entry: any, idx: number) =>(
+ {PerformanceComparisonData.map((entry: any, idx: number) => (
<Cell key={`cell_${idx}`} fill={readColors[idx]} />
))}
- <LabelList content={(props) => renderCustomizedLabel(props)} position="top" />
+ <LabelList dataKey="name" content={renderCustomizedLabel} />
</Bar>
<Bar dataKey="write" name="Write" barSize={20} unit=" requests/s">
- {PerformanceComparisonData.map((entry: any, idx: number) =>(
+ {PerformanceComparisonData.map((entry: any, idx: number) => (
<Cell key={`cell_${idx}`} fill={writeColors[idx]} />
))}
</Bar>