260326_01_ENH: categoryByData 배너 부분 순서 조정
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
|||||||
StackBar
|
StackBar
|
||||||
} from "@/components/lge-dashboard";
|
} from "@/components/lge-dashboard";
|
||||||
import BannerButtons from "@/components/lge-dashboard/BannerButtons";
|
import BannerButtons from "@/components/lge-dashboard/BannerButtons";
|
||||||
import {totalFilters} from "@/config/filter.data";
|
import {categoryByDataBanner, totalFilters} from "@/config/filter.data";
|
||||||
import React, {useMemo, useState} from "react";
|
import React, {useMemo, useState} from "react";
|
||||||
import {BannerGroupKey, CategoryChartMode, BannerRow, LegendOption} from "@/types/lg";
|
import {BannerGroupKey, CategoryChartMode, BannerRow, LegendOption} from "@/types/lg";
|
||||||
import {
|
import {
|
||||||
@@ -31,7 +31,7 @@ type CategoryByDataProps = {
|
|||||||
chartWidth?: number;
|
chartWidth?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const banners: bannerType[] = totalFilters.map((filter) => {
|
const banners: bannerType[] = categoryByDataBanner.map((filter) => {
|
||||||
return {variable: filter.variable, variableName: filter.variableName}
|
return {variable: filter.variable, variableName: filter.variableName}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
CategoryByDataBanner,
|
|
||||||
CategoryTargetData,
|
CategoryTargetData,
|
||||||
CategoryTargetItem,
|
CategoryTargetItem,
|
||||||
CategoryTargetType,
|
CategoryTargetType,
|
||||||
CategoryTargetTypeItem,
|
CategoryTargetTypeItem, FilterItem,
|
||||||
TotalFilterItem
|
TotalFilterItem
|
||||||
} from "./filter.types";
|
} from "./filter.types";
|
||||||
|
|
||||||
@@ -148,7 +147,7 @@ export const categoryTarget: CategoryTargetItem[] = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
export const categoryByDataBanner:CategoryByDataBanner[] = [
|
export const categoryByDataBanner:FilterItem[] = [
|
||||||
{
|
{
|
||||||
variable:"lifeStage",
|
variable:"lifeStage",
|
||||||
variableName:"라이프 스테이지",
|
variableName:"라이프 스테이지",
|
||||||
|
|||||||
@@ -3,9 +3,12 @@ export type FilterChild = {
|
|||||||
label: string;
|
label: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TotalFilterItem = {
|
export type FilterItem = {
|
||||||
variable: string;
|
variable: string;
|
||||||
variableName: string;
|
variableName: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type TotalFilterItem = FilterItem & {
|
||||||
children: FilterChild[];
|
children: FilterChild[];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -25,11 +28,6 @@ export enum CategoryTargetData {
|
|||||||
PAYMENT_METHOD = 15,
|
PAYMENT_METHOD = 15,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type CategoryByDataBanner = {
|
|
||||||
variable: string;
|
|
||||||
variableName: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type CategoryTargetTypeItem = {
|
export type CategoryTargetTypeItem = {
|
||||||
label: string;
|
label: string;
|
||||||
value: CategoryTargetType;
|
value: CategoryTargetType;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import {BannerKey, CategoryFieldSpec, LifeStageRow} from "@/types/lg";
|
|||||||
import {GaugeColumn} from "@/components/lge-dashboard";
|
import {GaugeColumn} from "@/components/lge-dashboard";
|
||||||
import {CategoryTargetData, CategoryTargetType} from "@/config/filter.types";
|
import {CategoryTargetData, CategoryTargetType} from "@/config/filter.types";
|
||||||
|
|
||||||
export const USE_CACHE = false;
|
export const USE_CACHE = true;
|
||||||
export const API_DECIMAL_POINT = 0;
|
export const API_DECIMAL_POINT = 0;
|
||||||
export const VIEW_DECIMAL_POINT = 0;
|
export const VIEW_DECIMAL_POINT = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user