Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix: add park slope level #47

Merged
merged 1 commit into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading