Skip to content

Commit d80a909

Browse files
authored
test(LoginView): 데모 체험하기 로그인 버튼 비활성화 (#61)
1 parent d4bbcbc commit d80a909

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

KillingPart/Views/Screens/Auth/LoginView.swift

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,34 @@ struct LoginView: View {
6060
)
6161
}
6262

63-
Button(action: viewModel.loginWithTester) {
64-
ZStack {
65-
Text("체험하기(Demo)")
66-
.font(AppFont.paperlogy5Medium(size: 14))
67-
.opacity(
68-
viewModel.isLoading
69-
&& viewModel.activeSocialLoginProvider == .tester ? 0 : 1
70-
)
71-
72-
if viewModel.isLoading
73-
&& viewModel.activeSocialLoginProvider == .tester {
74-
ProgressView()
75-
.tint(.white)
76-
}
77-
}
78-
.foregroundStyle(.white)
79-
.padding(.horizontal, AppSpacing.l)
80-
.padding(.vertical, AppSpacing.s)
81-
.background(Color.white.opacity(0.16))
82-
.clipShape(RoundedRectangle(cornerRadius: 14, style: .continuous))
83-
.overlay {
84-
RoundedRectangle(cornerRadius: 14, style: .continuous)
85-
.stroke(Color.white.opacity(0.28), lineWidth: 1)
86-
}
87-
}
88-
.buttonStyle(.plain)
89-
.disabled(viewModel.isLoading)
90-
.accessibilityLabel("체험하기")
63+
// Button(action: viewModel.loginWithTester) {
64+
// ZStack {
65+
// Text("체험하기(Demo)")
66+
// .font(AppFont.paperlogy5Medium(size: 14))
67+
// .opacity(
68+
// viewModel.isLoading
69+
// && viewModel.activeSocialLoginProvider == .tester ? 0 : 1
70+
// )
71+
//
72+
// if viewModel.isLoading
73+
// && viewModel.activeSocialLoginProvider == .tester {
74+
// ProgressView()
75+
// .tint(.white)
76+
// }
77+
// }
78+
// .foregroundStyle(.white)
79+
// .padding(.horizontal, AppSpacing.l)
80+
// .padding(.vertical, AppSpacing.s)
81+
// .background(Color.white.opacity(0.16))
82+
// .clipShape(RoundedRectangle(cornerRadius: 14, style: .continuous))
83+
// .overlay {
84+
// RoundedRectangle(cornerRadius: 14, style: .continuous)
85+
// .stroke(Color.white.opacity(0.28), lineWidth: 1)
86+
// }
87+
// }
88+
// .buttonStyle(.plain)
89+
// .disabled(viewModel.isLoading)
90+
// .accessibilityLabel("체험하기")
9191
}
9292
.padding(.horizontal, horizontalPadding)
9393
.padding(.bottom, bottomPadding)

0 commit comments

Comments
 (0)