260401_01_ENH: 누락 내용 주석 풀고 음영 표시의 경우 Brand 뿐만아니라 다른 페이지에도 적용
This commit is contained in:
@@ -51,12 +51,9 @@ const CategoryPage = () => {
|
||||
const { data } = useBannerStatisticsQuery(req);
|
||||
const dataMap = data?.statisticsDataMap;
|
||||
const target = debouncedFilterValue.target;
|
||||
const Comp = PAGE_COMPONENTS[target.value];
|
||||
const fillGreaterThan5 = Comp === CategoryDetail && !!dataMap;
|
||||
|
||||
//고객사 요청 시에 아래 주석 풀고 false 대신 넘기기
|
||||
const fillGreaterThan5 = false//target.value === CategoryTargetData.BRAND && !!dataMap;
|
||||
|
||||
//고객사 요청 시에 아래 주석 풀고 dataMap대신 processedDataMap로 넘기기
|
||||
/*
|
||||
const processedDataMap = useMemo(() => {
|
||||
if (!dataMap || target.value !== CategoryTargetData.BRAND) {
|
||||
return dataMap;
|
||||
@@ -100,11 +97,9 @@ const CategoryPage = () => {
|
||||
|
||||
return nextMap;
|
||||
}, [dataMap, fields, target.value]);
|
||||
*/
|
||||
const Comp = PAGE_COMPONENTS[target.value];
|
||||
|
||||
if(isTotal) return null;
|
||||
return Comp ? <Comp fields={fields} variableIdMap={variableIdMap} dataMap={dataMap} fillGreaterThan5={fillGreaterThan5} /> : null;
|
||||
return Comp ? <Comp fields={fields} variableIdMap={variableIdMap} dataMap={processedDataMap} fillGreaterThan5={fillGreaterThan5} /> : null;
|
||||
}
|
||||
|
||||
export default CategoryPage;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import { bannerType, type DataColumn, DataTable, HorizontalBar, SectionTitle, SignStyle, StackBar } from "@/components/lge-dashboard";
|
||||
import {
|
||||
bannerType,
|
||||
BottomDescription, type DataColumn, DataTable, HorizontalBar, SectionTitle, SignStyle, StackBar
|
||||
} from "@/components/lge-dashboard";
|
||||
import BannerButtons from "@/components/lge-dashboard/BannerButtons";
|
||||
import { categoryByDataBanner } from "@/const/filter.const";
|
||||
import React, { useMemo, useState } from "react";
|
||||
@@ -151,6 +154,7 @@ const CategoryByData = ({
|
||||
fillGreaterThan5={fillGreaterThan5}
|
||||
starUnder30Sample={true}
|
||||
/>
|
||||
<BottomDescription description={"전체 대비 5%p 이상 품목에 대해 음영 표시"} />
|
||||
</div>
|
||||
</div>
|
||||
<div className="ml-5 mb-5 -mt-3 flex content-text-sm">{surveyTitle}</div>
|
||||
|
||||
Reference in New Issue
Block a user