Skip to content

Commit 5da8f85

Browse files
authored
feat: add park slope level (#47)
1 parent 784c18c commit 5da8f85

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

src/entities/slop/model/model.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export type Level =
44
| 'INTERMEDIATE'
55
| 'UPPER_INTERMEDIATE'
66
| 'ADVANCED'
7-
| 'EXPERT';
7+
| 'EXPERT'
8+
| 'PARK';
89

910
export type ResortInfo = {
1011
MapComponent: ComponentType;

src/entities/slop/ui/level-chip.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ const LEVEL: Record<Level, { text: string; color: string }> = {
2727
text: '최상급',
2828
color: 'bg-gray-70',
2929
},
30+
PARK: {
31+
text: '파크',
32+
color: 'bg-sub-2',
33+
},
3034
};
3135

3236
interface LevelChipProps {

src/entities/slope/model/model.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export type Level =
44
| '중급'
55
| '중상급'
66
| '상급'
7-
| '최상급';
7+
| '최상급'
8+
| '파크';
89

910
export type Slope = {
1011
name: string,

src/entities/slope/ui/level-chip.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ const LEVEL: Record<Level, { text: string; color: string }> = {
2727
text: '최상급',
2828
color: 'bg-gray-70',
2929
},
30+
파크: {
31+
text: '파크',
32+
color: 'bg-sub-2',
33+
},
3034
};
3135

3236
interface LevelChipProps {

src/views/slop-status/ui/slop-status-page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const SlopStatusPage = ({
1919
}) => {
2020
const { ref, style, containerRef } = useMapPinch();
2121

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

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

0 commit comments

Comments
 (0)