Skip to content

Commit

Permalink
Merge pull request #146 from Weflo-A/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ymj07168 authored Mar 10, 2024
2 parents a90b07d + 3769352 commit 0aa7725
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/estimate/NewPartsInfoBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const NewPartInfoBox = ({
</Stack>
<Stack direction='row' alignItems='center' gap='1rem'>
<Typography variant='h4' fontWeight='bold'>
{price}
{price.toLocaleString()}
</Typography>
<CheckBox
key={id}
Expand Down
2 changes: 1 addition & 1 deletion src/components/estimate/RecyclePartBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const RecyclePartBox = ({
<Typography fontSize='14px'>{name}</Typography>
<Typography fontSize='14px'>{score}</Typography>
<Typography variant='h4' fontWeight='bold' color={colors.accent100}>
{price}
{price.toLocaleString()}
</Typography>
<CheckBox value={name} checked={checked} onChange={onChange} />
</PartBox>
Expand Down
2 changes: 1 addition & 1 deletion src/components/estimate/RepairCompanyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const RepairCompanyCard = ({
예상 수리 비용
</Typography>
<Typography variant='h4' fontWeight='bold' color={colors.accent100}>
{`${cost[0]} ~ ${cost[1]}`}
{`${cost[0].toLocaleString()} ~ ${cost[1].toLocaleString()}`}
</Typography>
</Stack>
</Stack>
Expand Down
2 changes: 1 addition & 1 deletion src/components/estimate/RepairCompanyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const DroneGroupCard: React.FC<DroneGroupCardProps> = ({ data }) => {
투입 비용
</Typography>
<Typography variant='caption' color={colors.basic500}>
{data.cost}
{data.cost.toLocaleString()}
</Typography>
</Box>
<Box>
Expand Down
5 changes: 2 additions & 3 deletions src/pages/EstimatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down Expand Up @@ -560,7 +560,6 @@ const EstimatePage = () => {
<MenuTab type='dashboard' drones={drones} />
<div className='page'>
{renderPageHeader()}
<img src='/assets/images/drone-parts.png' />
<Stack direction='column' gap='3.25rem'>
{/* 교체가 피필요한 부품 및 총 점수 */}
<Stack direction='row' gap='1rem'>
Expand Down
9 changes: 2 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 0aa7725

Please sign in to comment.