improve funnels
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
|
||||
import { TriangleIcon } from 'lucide-react';
|
||||
|
||||
import type { IChartInput } from '@openpanel/validation';
|
||||
|
||||
import { Funnel } from '../funnel';
|
||||
@@ -15,18 +12,7 @@ export const ChartSwitch = withChartProivder(function ChartSwitch(
|
||||
props: ReportChartProps
|
||||
) {
|
||||
if (props.chartType === 'funnel') {
|
||||
return (
|
||||
<>
|
||||
<Alert>
|
||||
<TriangleIcon className="h-4 w-4" />
|
||||
<AlertTitle>Keep in mind</AlertTitle>
|
||||
<AlertDescription>
|
||||
Funnel chart is still experimental and might not work as expected.
|
||||
</AlertDescription>
|
||||
</Alert>
|
||||
<Funnel {...props} />
|
||||
</>
|
||||
);
|
||||
return <Funnel {...props} />;
|
||||
}
|
||||
|
||||
return <Chart {...props} />;
|
||||
|
||||
Reference in New Issue
Block a user