mirror of
https://github.com/StanGirard/quivr.git
synced 2024-08-16 16:40:40 +03:00
💩 add ts-expect-error to Victory components
This commit is contained in:
parent
3676ee7be3
commit
b40da1376f
@ -17,20 +17,23 @@ const BrainSpaceChart = ({
|
||||
...props
|
||||
}: BrainSpaceChartProps): JSX.Element => {
|
||||
return (
|
||||
<VictoryPie
|
||||
data={[
|
||||
{ x: "Used", y: current_brain_size },
|
||||
{ x: "Unused", y: max_brain_size - current_brain_size },
|
||||
]}
|
||||
containerComponent={
|
||||
<VictoryContainer
|
||||
className="bg-white rounded-md w-full h-full"
|
||||
responsive={true}
|
||||
/>
|
||||
}
|
||||
{...props}
|
||||
theme={VictoryTheme.material}
|
||||
/>
|
||||
<>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<VictoryPie
|
||||
data={[
|
||||
{ x: "Used", y: current_brain_size },
|
||||
{ x: "Unused", y: max_brain_size - current_brain_size },
|
||||
]}
|
||||
containerComponent={
|
||||
<VictoryContainer
|
||||
className="bg-white rounded-md w-full h-full"
|
||||
responsive={true}
|
||||
/>
|
||||
}
|
||||
{...props}
|
||||
theme={VictoryTheme.material}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -51,12 +51,15 @@ export const RequestsPerDayChart = ({
|
||||
}}
|
||||
{...props}
|
||||
>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<VictoryAxis
|
||||
tickFormat={(tick) => {
|
||||
return `${tick.split("/")[0]}/${tick.split("/")[1]}`;
|
||||
}}
|
||||
/>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<VictoryAxis dependentAxis />
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<VictoryLine data={data} x="date" y="requests_count" />
|
||||
</VictoryChart>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user