Skip to content

Commit 9e55bf5

Browse files
committed
[BOOK-357] feat: bookStatus의 String 반환 함수 추가
1 parent 20e52f2 commit 9e55bf5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

src/Projects/BKPresentation/Sources/MainFlow/Search/VO/BookRegistrationStatus.swift

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,35 @@ enum BookRegistrationStatus: String {
2828
return .after
2929
}
3030
}
31+
32+
func getSubTitle() -> String {
33+
switch self {
34+
case .before:
35+
return "책을 읽으면서 독서 기록을 남길 수 있어요"
36+
case .inProgress:
37+
return "독서 기록을 바로 시작할까요?"
38+
case .after:
39+
return "기억에 남은 문장이나 감상을 기록해보세요"
40+
}
41+
}
42+
43+
func getCancelButtonTitle() -> String {
44+
switch self {
45+
case .before:
46+
return "확인"
47+
case .inProgress, .after:
48+
return "나중에 하기"
49+
}
50+
}
51+
52+
func getNextButtonTitle() -> String {
53+
switch self {
54+
case .inProgress:
55+
return "기록 시작하기"
56+
case .after:
57+
return "기록 남기기"
58+
default:
59+
return ""
60+
}
61+
}
3162
}

0 commit comments

Comments
 (0)