* fix: prompt card shadows on light mode * fix: handle past_due and unpaid from polar * wip * wip * wip 1 * fix: improve types for chart/reports * wip share
32 lines
752 B
TypeScript
32 lines
752 B
TypeScript
import { ReportChart } from '@/components/report-chart';
|
|
import { ScrollArea } from '@/components/ui/scroll-area';
|
|
|
|
import type { IReport } from '@openpanel/validation';
|
|
|
|
import { ModalContent, ModalHeader } from './Modal/Container';
|
|
|
|
type Props = {
|
|
chart: IReport;
|
|
};
|
|
|
|
const OverviewChartDetails = (props: Props) => {
|
|
return (
|
|
<ModalContent>
|
|
<ModalHeader title={props.chart.name} />
|
|
<ScrollArea className="-m-6 max-h-[calc(100vh-200px)]">
|
|
<div className="p-6">
|
|
<ReportChart
|
|
report={{
|
|
...props.chart,
|
|
limit: 999,
|
|
chartType: 'bar',
|
|
}}
|
|
/>
|
|
</div>
|
|
</ScrollArea>
|
|
</ModalContent>
|
|
);
|
|
};
|
|
|
|
export default OverviewChartDetails;
|