Skip to content

Commit

Permalink
feat: add park slope level (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Najeong-Kim authored Nov 9, 2024
1 parent 784c18c commit 5da8f85
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/entities/slop/model/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export type Level =
| 'INTERMEDIATE'
| 'UPPER_INTERMEDIATE'
| 'ADVANCED'
| 'EXPERT';
| 'EXPERT'
| 'PARK';

export type ResortInfo = {
MapComponent: ComponentType;
Expand Down
4 changes: 4 additions & 0 deletions src/entities/slop/ui/level-chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const LEVEL: Record<Level, { text: string; color: string }> = {
text: '최상급',
color: 'bg-gray-70',
},
PARK: {
text: '파크',
color: 'bg-sub-2',
},
};

interface LevelChipProps {
Expand Down
3 changes: 2 additions & 1 deletion src/entities/slope/model/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ export type Level =
| '중급'
| '중상급'
| '상급'
| '최상급';
| '최상급'
| '파크';

export type Slope = {
name: string,
Expand Down
4 changes: 4 additions & 0 deletions src/entities/slope/ui/level-chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const LEVEL: Record<Level, { text: string; color: string }> = {
text: '최상급',
color: 'bg-gray-70',
},
파크: {
text: '파크',
color: 'bg-sub-2',
},
};

interface LevelChipProps {
Expand Down
2 changes: 1 addition & 1 deletion src/views/slop-status/ui/slop-status-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SlopStatusPage = ({
}) => {
const { ref, style, containerRef } = useMapPinch();

const { data: slopeData } = useQuery(slopeApi.slopeQueries.slope(resortId ?? 1));
const { data: slopeData } = useQuery(slopeApi.slopeQueries.slope(resortId ?? 0));

const { data } = useQuery(slopQueries.list(params?.key ?? 'jisan'));

Expand Down

0 comments on commit 5da8f85

Please sign in to comment.