Skip to content

Commit caed060

Browse files
committed
[fix] #203 저장완로 토스트 노출시간 4초 변경 및 보기 텍스트 추가
1 parent 0b2523a commit caed060

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

Projects/App/Sources/MainTab/MainTabFeatureView.swift

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ public extension MainTabView {
7474
}
7575

7676
if self.store.linkPopup != nil {
77-
PokitLinkPopup(
78-
type: $store.linkPopup,
79-
action: { send(.링크팝업_버튼_눌렀을때, animation: .pokitSpring) }
80-
)
77+
PokitLinkPopup(type: $store.linkPopup)
78+
.onAction { send(.링크팝업_버튼_눌렀을때, animation: .pokitSpring) }
8179
}
8280
}
8381
}
@@ -93,11 +91,9 @@ private extension MainTabView {
9391
.overlay(alignment: .bottom) {
9492
VStack(spacing: 0) {
9593
if store.linkPopup != nil {
96-
PokitLinkPopup(
97-
type: $store.linkPopup,
98-
action: { send(.링크팝업_버튼_눌렀을때, animation: .pokitSpring) }
99-
)
100-
.padding(.bottom, 20)
94+
PokitLinkPopup(type: $store.linkPopup)
95+
.onAction { send(.링크팝업_버튼_눌렀을때, animation: .pokitSpring) }
96+
.padding(.bottom, 20)
10197
}
10298

10399
bottomTabBar

Projects/App/Sources/MainTab/MainTabPath.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ public extension MainTabFeature {
194194
case .검색:
195195
return .merge(
196196
.send(.path(.element(id: stackElementId, action: .검색(.delegate(.컨텐츠_검색))))),
197-
.send(.inner(.링크팝업_활성화(.success(title: Constants.링크_저장_완료_문구))), animation: .pokitSpring)
197+
.send(.inner(.링크팝업_활성화(.success(title: Constants.링크_저장_완료_문구, until: 4))), animation: .pokitSpring)
198198
)
199199
default:
200-
return .send(.inner(.링크팝업_활성화(.success(title: Constants.링크_저장_완료_문구))), animation: .pokitSpring)
200+
return .send(.inner(.링크팝업_활성화(.success(title: Constants.링크_저장_완료_문구, until: 4))), animation: .pokitSpring)
201201
}
202202
case .recommend(.delegate(.저장하기_완료)):
203-
return .send(.inner(.링크팝업_활성화(.success(title: Constants.링크_저장_완료_문구))), animation: .pokitSpring)
203+
return .send(.inner(.링크팝업_활성화(.success(title: Constants.링크_저장_완료_문구, until: 4))), animation: .pokitSpring)
204204
/// - 각 화면에서 링크 복사 감지했을 때 (링크 추가 및 수정 화면 제외)
205205
case let .path(.element(_, action: .알림함(.delegate(.linkCopyDetected(url))))),
206206
let .path(.element(_, action: .검색(.delegate(.linkCopyDetected(url))))),

Projects/Util/Sources/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public enum Constants {
2828
public static let 포킷_최대_갯수_문구: String = "최대 30개의 포킷을 생성할 수 있습니다.\n포킷을 삭제한 뒤에 추가해주세요."
2929
public static let 복사한_링크_저장하기_문구: String = "복사한 링크 저장하기"
3030
public static let 제목을_입력해주세요_문구: String = "제목을 입력해주세요"
31-
public static let 링크_저장_완료_문구: String = "링크 저장 완료"
31+
public static let 링크_저장_완료_문구: String = "저정한 링크 보러가기"
3232
public static let 메모_수정_완료_문구: String = "메모 수정 완료"
3333
public static let 한글_영어_숫자_입력_문구: String = "한글, 영어, 숫자로만 입력이 가능합니다."
3434

0 commit comments

Comments
 (0)