Skip to content

Commit

Permalink
fix: Dialog func
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Jul 27, 2024
1 parent aa8a334 commit 050cb5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/DDS/Component/Modal/Dialog/Dialog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public struct Dialog {
}

public func secondaryButton(_ title: String, action: @escaping () -> Void) -> Self {
.init(title: title, message: message, primaryButton: primaryButton, secondaryButton: .init(title, action: action))
.init(title: self.title, message: self.message, primaryButton: self.primaryButton, secondaryButton: .init(title, action: action))
}

public func primaryButton(_ title: String, action: @escaping () -> Void) -> Self {
.init(title: title, message: message, primaryButton: .init(title, action: action), secondaryButton: secondaryButton)
.init(title: self.title, message: self.message, primaryButton: .init(title, action: action), secondaryButton: self.secondaryButton)
}
}

0 comments on commit 050cb5f

Please sign in to comment.