Skip to content

Commit a384169

Browse files
committed
refactor: Button 사용 예시 통일
1 parent c36fabd commit a384169

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Application/DevLogPresentation/Sources/Profile/ProfileView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ struct ProfileView: View {
112112

113113
if !store.statusMessage.isEmpty,
114114
store.showDoneButton {
115-
Button(action: {
115+
Button {
116116
store.send(.tapResetStatusMessageButton)
117-
}) {
117+
} label: {
118118
Image(systemName: "xmark.circle.fill")
119119
}
120120
.transition(.move(edge: .trailing).combined(with: .opacity))
@@ -127,10 +127,10 @@ struct ProfileView: View {
127127
.fill(Color(.secondarySystemGroupedBackground))
128128
)
129129
if store.showDoneButton {
130-
Button(action: {
130+
Button {
131131
focused = false
132132
store.send(.willUpdateStatusMessage)
133-
}) {
133+
} label: {
134134
Text(String(localized: "profile_done"))
135135
}
136136
.transition(.move(edge: .trailing).combined(with: .opacity))

0 commit comments

Comments
 (0)