From b33928235cb81b810e98e47d4e9203ec8662d8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=9A=A8=EC=9B=90?= Date: Sun, 10 Mar 2024 20:45:16 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Fix/#138]:=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/EstimatePage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/EstimatePage.tsx b/src/pages/EstimatePage.tsx index 1f72839..0dd8c6a 100644 --- a/src/pages/EstimatePage.tsx +++ b/src/pages/EstimatePage.tsx @@ -560,7 +560,6 @@ const EstimatePage = () => {
{renderPageHeader()} - {/* 교체가 피필요한 부품 및 총 점수 */} From 0c030351ae5628cd413cb9190bbb1b5bbc5bde01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=9A=A8=EC=9B=90?= Date: Sun, 10 Mar 2024 21:21:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[Fix/#138]:=20=EA=B0=80=EA=B2=A9=20?= =?UTF-8?q?=EC=A1=B0=EC=A0=95=20=EB=B0=8F=20=EC=88=98=EB=A6=AC=20=EC=97=85?= =?UTF-8?q?=EC=B2=B4=20=EA=B8=B0=EB=8A=A5=20=EC=A4=91=EB=B3=B5=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dashboard/DroneDetail.tsx | 2 +- src/components/estimate/NewPartsInfoBox.tsx | 2 +- src/components/estimate/RecyclePartBox.tsx | 2 +- src/components/estimate/RepairCompanyCard.tsx | 2 +- src/components/estimate/RepairCompanyList.tsx | 2 +- .../onboarding/droneGroupSearch/DroneGroupCard.tsx | 2 +- src/pages/EstimatePage.tsx | 4 ++-- tsconfig.json | 9 ++------- 8 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/components/dashboard/DroneDetail.tsx b/src/components/dashboard/DroneDetail.tsx index c75685a..09e929b 100644 --- a/src/components/dashboard/DroneDetail.tsx +++ b/src/components/dashboard/DroneDetail.tsx @@ -94,7 +94,7 @@ const DroneDetail = ({ data }: Props) => { - {cost} + {cost.toLocaleString()} 원 diff --git a/src/components/estimate/NewPartsInfoBox.tsx b/src/components/estimate/NewPartsInfoBox.tsx index 147fa12..87c6a35 100644 --- a/src/components/estimate/NewPartsInfoBox.tsx +++ b/src/components/estimate/NewPartsInfoBox.tsx @@ -70,7 +70,7 @@ const NewPartInfoBox = ({ - {price} 원 + {price.toLocaleString()} 원 {name} {score}점 - {price} 원 + {price.toLocaleString()} 원 diff --git a/src/components/estimate/RepairCompanyCard.tsx b/src/components/estimate/RepairCompanyCard.tsx index 0d22df2..9062496 100644 --- a/src/components/estimate/RepairCompanyCard.tsx +++ b/src/components/estimate/RepairCompanyCard.tsx @@ -81,7 +81,7 @@ const RepairCompanyCard = ({ 예상 수리 비용 - {`${cost[0]} ~ ${cost[1]}`} + {`${cost[0].toLocaleString()}원 ~ ${cost[1].toLocaleString()}원`} diff --git a/src/components/estimate/RepairCompanyList.tsx b/src/components/estimate/RepairCompanyList.tsx index d3f73f4..ee71085 100644 --- a/src/components/estimate/RepairCompanyList.tsx +++ b/src/components/estimate/RepairCompanyList.tsx @@ -64,7 +64,7 @@ const RepairCompanyList = ({ items }: RepairCompanyProps) => { logo={logoImg1} cost={[item.minPrice, item.maxPrice]} name={item.name} - tag={item.features} + tag={[...new Set(item.features)]} type={ item.features.length >= 3 ? 'best' diff --git a/src/components/onboarding/droneGroupSearch/DroneGroupCard.tsx b/src/components/onboarding/droneGroupSearch/DroneGroupCard.tsx index 2c4ad1b..6ed4a2f 100644 --- a/src/components/onboarding/droneGroupSearch/DroneGroupCard.tsx +++ b/src/components/onboarding/droneGroupSearch/DroneGroupCard.tsx @@ -85,7 +85,7 @@ const DroneGroupCard: React.FC = ({ data }) => { 투입 비용 - {data.cost} + {data.cost.toLocaleString()}원 diff --git a/src/pages/EstimatePage.tsx b/src/pages/EstimatePage.tsx index 0dd8c6a..a0b32ce 100644 --- a/src/pages/EstimatePage.tsx +++ b/src/pages/EstimatePage.tsx @@ -278,8 +278,8 @@ const EstimatePage = () => { getEnglishType(topSection?.components[0].type || '모터') || 'Motor'; const second = getEnglishType(topSection?.components[1].type || '블레이드') || 'Blade'; - getRepairCompany(currentDrone?.name || 'Model1', [first, second]).then( - (res) => setRepairCompanies(res.data.data) + getRepairCompany(droneModel || 'EAGEL', [first, second]).then((res) => + setRepairCompanies(res.data.data) ); }, [topSection]); diff --git a/tsconfig.json b/tsconfig.json index f67f71f..bd8c354 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,9 @@ { "compilerOptions": { + "downlevelIteration": true, "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], - "types": [ - "node", - "react", - "react-dom", - "@types/apexcharts", - "axios" - ], + "types": ["node", "react", "react-dom", "@types/apexcharts", "axios"], "typeRoots": ["./node_modules/@types"], "allowJs": true, "skipLibCheck": true,