Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸ”€ :: GuestSignin λ²„νŠΌ μ œμž‘ #166

Merged
merged 3 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Projects/App/Sources/Application/NeedleGenerated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private func registerProviderFactory(_ componentPath: String, _ factory: @escapi

#if !NEEDLE_DYNAMIC

@inline(never) private func register1() {
private func register1() {
registerProviderFactory("^->AppComponent->JwtStoreComponent", factoryb27d5aae1eb7e73575a6f47b58f8f304c97af4d5)
registerProviderFactory("^->AppComponent", factoryEmptyDependencyProvider)
registerProviderFactory("^->AppComponent->KeychainComponent", factoryEmptyDependencyProvider)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ extension RootIntent: SigninDelegate {
func successToSignin(isAlreadySignUp: Bool) {
model?.updateSceneType(type: isAlreadySignUp ? .home : .inputInformation)
}

func guestSignin() {
model?.updateSceneType(type: .home)
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

final class RootModel: ObservableObject, RootStateProtocol {
@Published var sceneType: RootSceneType = .inputInformation
@Published var sceneType: RootSceneType = .signin
}

extension RootModel: RootActionProtocol {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
public protocol SigninDelegate: AnyObject {
func successToSignin(isAlreadySignUp: Bool)
func guestSignin()
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ final class SigninIntent: SigninIntentProtocol {
}
}
}

func guestSigninButtonDidTap() {
saveUserRoleUseCase.execute(role: .guest)
signinDelegate?.guestSignin()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ import Foundation

protocol SigninIntentProtocol {
func signin(code: String)
func guestSigninButtonDidTap()
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ struct SigninView: View {
}
.padding(.horizontal, 20)
.frame(height: 50)
.padding(.bottom, 54)
.padding(.bottom, 16)

Text("게슀트둜 λ‘˜λŸ¬λ³΄κΈ°")
.underline()
.smsFont(.body2, color: .system(.white))
.padding(.bottom, 38)
.buttonWrapper {
intent.guestSigninButtonDidTap()
}
}
.background {
SMSImage(.background)
Expand Down