Skip to content

Commit

Permalink
fix: 명세 변경 적용 (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyw0716 authored Sep 5, 2023
1 parent 4ff770a commit 9a99238
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/ui/StationList/StationSummaryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ const StationSummaryCard = ({ station, tag, $noPadding }: Props) => {
isPrivate,
isParkingFree,
operatingTime,
chargers,
quickChargerCount,
} = station;
const fastChargerCount = chargers.filter(({ capacity }) => capacity >= 50).length;

return (
<ListItem tag={tag} key={stationId} css={$noPadding && noPadding}>
Expand Down Expand Up @@ -76,7 +75,7 @@ const StationSummaryCard = ({ station, tag, $noPadding }: Props) => {
</Text>
</FlexBox>
</article>
{fastChargerCount !== 0 && <ChargingSpeedIcon />}
{quickChargerCount !== 0 && <ChargingSpeedIcon />}
</FlexBox>
</Button>
</ListItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const stationHandlers = [
const {
address,
availableCount,
chargers,
companyName,
detailLocation,
isParkingFree,
Expand All @@ -37,7 +36,6 @@ export const stationHandlers = [
return {
address,
availableCount,
chargers,
companyName,
detailLocation,
isParkingFree,
Expand Down
1 change: 0 additions & 1 deletion frontend/src/types/stations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export type StationSummary = Pick<
Station,
| 'address'
| 'availableCount'
| 'chargers'
| 'companyName'
| 'detailLocation'
| 'isParkingFree'
Expand Down

0 comments on commit 9a99238

Please sign in to comment.