Skip to content

Commit

Permalink
[feat] #154 RemindSplit 링크추가 delegate 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
ShapeKim98 committed Oct 27, 2024
1 parent 9f1e5fb commit 53c0cd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private extension MainTabSplitFeature {
case .pokit:
return .send(.pokit(.delegate(.링크추가_활성화)))
case .remind:
return .none
return .send(.remind(.delegate(.링크추가_활성화)))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public struct RemindSplitFeature {
case 링크수정(PresentationAction<ContentSettingFeature.Action>)
}

public enum DelegateAction: Equatable { case doNothing }
public enum DelegateAction: Equatable {
case 링크추가_활성화
}
}

/// - Initiallizer
Expand Down Expand Up @@ -332,7 +334,11 @@ private extension RemindSplitFeature {

/// - Delegate Effect
func handleDelegateAction(_ action: Action.DelegateAction, state: inout State) -> Effect<Action> {
return .none
switch action {
case .링크추가_활성화:
state.columnVisibility = .all
return .none
}
}

func handlePathAction(_ action: StackActionOf<Path>, state: inout State) -> Effect<Action> {
Expand Down

0 comments on commit 53c0cd4

Please sign in to comment.