-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6f3d89
commit 0cebb7e
Showing
4 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const getResortStatusText = (status: string, openingDate: string, openSlopes: number) => { | ||
if (status === '운영중') { | ||
return `운행중인 슬로프 ${openSlopes}개`; | ||
} else if (status === '운영종료') { | ||
return '다음 시즌에 또 만나요' | ||
} | ||
|
||
if (openingDate) { | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const [_, month, day] = openingDate.split('-'); | ||
return `${+month}월 ${+day}일에 개장 예정이에요` | ||
} else { | ||
return '개장일이 곧 공개될 예정이에요' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters