feature(dashboard): refactor overview

fix(lint)
This commit is contained in:
Carl-Gerhard Lindesvärd
2025-03-20 09:28:54 +01:00
committed by Carl-Gerhard Lindesvärd
parent b035c0d586
commit a1eb4a296f
83 changed files with 59167 additions and 32403 deletions

View File

@@ -1,25 +1,12 @@
import { pushModal } from '@/modals';
import { ScanEyeIcon } from 'lucide-react';
import type { IChartProps } from '@openpanel/validation';
import { Button, type ButtonProps } from '../ui/button';
import { Button } from '../ui/button';
type Props = Omit<ButtonProps, 'children'>;
type Props = {
chart: IChartProps;
};
const OverviewDetailsButton = ({ chart }: Props) => {
const OverviewDetailsButton = (props: Props) => {
return (
<Button
size="icon"
variant="ghost"
onClick={() => {
pushModal('OverviewChartDetails', {
chart: chart,
});
}}
>
<Button size="icon" variant="ghost" {...props}>
<ScanEyeIcon size={18} />
</Button>
);