콘텐츠 메인, 라이브 메인, 오디션 메인, 마이페이지
- 로그인 하지 않고 페이지 조회가 되도록 수정
This commit is contained in:
		@@ -15,6 +15,8 @@ struct SectionLiveNowView: View {
 | 
			
		||||
    let onTapCreateLive: () -> Void
 | 
			
		||||
    let onClickRefresh: () -> Void
 | 
			
		||||
    
 | 
			
		||||
    @AppStorage("token") private var token: String = UserDefaults.string(forKey: UserDefaultsKey.token)
 | 
			
		||||
    
 | 
			
		||||
    var body: some View {
 | 
			
		||||
        LazyVStack(spacing: 13.3) {
 | 
			
		||||
            HStack(spacing: 0) {
 | 
			
		||||
@@ -45,20 +47,24 @@ struct SectionLiveNowView: View {
 | 
			
		||||
                            LiveNowItemView(item: item)
 | 
			
		||||
                                .contentShape(Rectangle())
 | 
			
		||||
                                .onTapGesture {
 | 
			
		||||
                                    AppState.shared.setAppStep(
 | 
			
		||||
                                        step: .liveDetail(
 | 
			
		||||
                                            roomId: item.roomId,
 | 
			
		||||
                                            onClickParticipant: {
 | 
			
		||||
                                                AppState.shared.isShowPlayer = false
 | 
			
		||||
                                                onClickParticipant(item.roomId)
 | 
			
		||||
                                            },
 | 
			
		||||
                                            onClickReservation: {},
 | 
			
		||||
                                            onClickStart: {
 | 
			
		||||
                                            },
 | 
			
		||||
                                            onClickCancel: {
 | 
			
		||||
                                            }
 | 
			
		||||
                                    if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
 | 
			
		||||
                                        AppState.shared.setAppStep(
 | 
			
		||||
                                            step: .liveDetail(
 | 
			
		||||
                                                roomId: item.roomId,
 | 
			
		||||
                                                onClickParticipant: {
 | 
			
		||||
                                                    AppState.shared.isShowPlayer = false
 | 
			
		||||
                                                    onClickParticipant(item.roomId)
 | 
			
		||||
                                                },
 | 
			
		||||
                                                onClickReservation: {},
 | 
			
		||||
                                                onClickStart: {
 | 
			
		||||
                                                },
 | 
			
		||||
                                                onClickCancel: {
 | 
			
		||||
                                                }
 | 
			
		||||
                                            )
 | 
			
		||||
                                        )
 | 
			
		||||
                                    )
 | 
			
		||||
                                    } else {
 | 
			
		||||
                                        AppState.shared.setAppStep(step: .login)
 | 
			
		||||
                                    }
 | 
			
		||||
                                }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user