From ea5176f6a2657842685b1086f0514026b9da7c34 Mon Sep 17 00:00:00 2001 From: truthwing Date: Tue, 15 Jul 2025 15:36:35 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=8C=EB=94=A9=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business_components/src/ui/chart/index.tsx | 13 +++++++------ .../src/ui/date_picker_range/index.tsx | 5 ++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/common/business_components/src/ui/chart/index.tsx b/packages/common/business_components/src/ui/chart/index.tsx index 898a65a79..6e0010f9a 100644 --- a/packages/common/business_components/src/ui/chart/index.tsx +++ b/packages/common/business_components/src/ui/chart/index.tsx @@ -1,9 +1,8 @@ - import React from 'react'; -import BarChart from './BarChart'; -import DoughnutChart from './DoughnutChart'; -import LineChart from './LineChart'; -import LineBarchart from './LineBarChart'; + import BarChart from './BarChart'; import DoubleBarChart from './DoubleBar'; +import DoughnutChart from './DoughnutChart'; +import LineBarchart from './LineBarChart'; +import LineChart from './LineChart'; /**차트 FORM */ const CHART_FORM = { @@ -36,7 +35,8 @@ const CHART_FORM = { // 각 차트에서 사용하는 ChartConfig 타입 정의 type ChartConfigItem = { label: string; - fill: string; + fill?: string; + color?: string; }; type ChartConfig = { @@ -80,5 +80,6 @@ function MainChart(props: MainChartProps) { } export { MainChart }; +export type { ChartConfig }; // eslint-disable-next-line react-refresh/only-export-components export { CHART_FORM }; diff --git a/packages/common/business_components/src/ui/date_picker_range/index.tsx b/packages/common/business_components/src/ui/date_picker_range/index.tsx index 72b7b5562..7cf19d819 100644 --- a/packages/common/business_components/src/ui/date_picker_range/index.tsx +++ b/packages/common/business_components/src/ui/date_picker_range/index.tsx @@ -4,14 +4,13 @@ import { format } from "date-fns"; import { CalendarIcon } from "lucide-react"; import type { DayPickerSingleProps } from "react-day-picker"; +import { Button, Calendar, Popover, PopoverContent, PopoverTrigger } from "@common/components/ui"; import { cn } from "../../lib/utils"; -import { Button } from "@common/components/ui"; -import { Calendar } from "@common/components/ui"; -import { Popover, PopoverContent, PopoverTrigger } from "@common/components/ui"; type DatePickerRangeProps = { placeholder?: string; disabled?: boolean | ((date: Date) => boolean); + onSelect: (date: Date | undefined) => void; } & DayPickerSingleProps; export function DatePickerRange({