라이브, 콘텐츠 메인 홈

- 크리에이터의 경우 라이브 만들기 / 콘텐츠 업로드  버튼이 바로 보이도록 수정
This commit is contained in:
Yu Sung
2025-03-24 21:27:24 +09:00
parent 8a4a38a826
commit e8f909035a
2 changed files with 4 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ struct ContentMainTabHomeView: View {
@StateObject var viewModel = ContentMainTabHomeViewModel()
@AppStorage("token") private var token: String = UserDefaults.string(forKey: UserDefaultsKey.token)
@AppStorage("role") private var role: String = UserDefaults.string(forKey: UserDefaultsKey.role)
var body: some View {
BaseView(isLoading: $viewModel.isLoading) {
@@ -274,7 +275,7 @@ struct ContentMainTabHomeView: View {
}
}
if UserDefaults.string(forKey: .role) == MemberRole.CREATOR.rawValue {
if role == MemberRole.CREATOR.rawValue {
HStack(spacing: 5) {
Image("ic_thumb_play")
.resizable()