[docker build] build 시 차트 Config 부분 추가

This commit is contained in:
2025-06-26 18:01:50 +09:00
parent 0fd6de3d5a
commit 8dc5721010
@@ -1,8 +1,6 @@
import React from 'react';
import React from 'react';
import BarChart from './BarChart';
import DoughnutChart from './DoughnutChart';
import { type ChartConfig } from './lib/chart';
import LineChart from './LineChart';
import LineBarchart from './LineBarChart';
import DoubleBarChart from './DoubleBar';
@@ -35,6 +33,16 @@ const CHART_FORM = {
* @returns
*/
// 각 차트에서 사용하는 ChartConfig 타입 정의
type ChartConfigItem = {
label: string;
fill: string;
};
type ChartConfig = {
[key: string]: ChartConfigItem;
};
type MainChartProps = {
chartForm: string;
chartConfig: ChartConfig;
@@ -74,4 +82,3 @@ function MainChart(props: MainChartProps) {
export { MainChart };
// eslint-disable-next-line react-refresh/only-export-components
export { CHART_FORM };
export type { ChartConfig };