-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix/#220 : 참여 화면 state immutable 로 변경
- core:model의 모델을 state로 사용 -> 화면 전용 immutable 모델 선언 및 state 사용 - uiState 선언시 등호 대신 by 사용하여 State 내부 타입 바로 접근
- Loading branch information
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
feature/mygroup/src/main/java/com/boostcamp/mapisode/mygroup/state/GroupJoinState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package com.boostcamp.mapisode.mygroup.state | ||
|
||
import androidx.compose.runtime.Immutable | ||
import com.boostcamp.mapisode.model.GroupModel | ||
import com.boostcamp.mapisode.mygroup.model.GroupCreationModel | ||
import com.boostcamp.mapisode.ui.base.UiState | ||
|
||
@Immutable | ||
data class GroupJoinState( | ||
val isGroupExist: Boolean = false, | ||
val isGroupLoading: Boolean = false, | ||
val isJoinedSuccess: Boolean = false, | ||
val group: GroupModel? = null, | ||
val group: GroupCreationModel? = null, | ||
) : UiState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters