Skip to content

Commit

Permalink
[delete] #9 의미없는 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
kamja0510 committed Dec 6, 2024
1 parent 63f9e79 commit 62d89fc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 21 deletions.
12 changes: 0 additions & 12 deletions app/src/main/java/org/sopt/and/data/mapper/Mapper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ object Mapper {
)
}

fun toSignInInformationEntity(signInRequestDto: SignInRequestDto) =
SignInInformationEntity(
username = signInRequestDto.username,
password = signInRequestDto.password
)

fun toSignUpInformationEntity(signUpRequestDto: SignUpRequestDto) = SignUpInformationEntity(
username = signUpRequestDto.username,
password = signUpRequestDto.password,
hobby = signUpRequestDto.hobby
)

fun toSignInRequestDto(signInInformationEntity: SignInInformationEntity) = SignInRequestDto(
username = signInInformationEntity.username,
password = signInInformationEntity.password
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.sopt.and.R

data class HomeUiState(
@StringRes
val genres: List<Int> = listOf<Int>(
val genres: List<Int> = listOf(
R.string.genre_new_classic,
R.string.genre_drama,
R.string.genre_entertainment,
Expand All @@ -15,14 +15,14 @@ data class HomeUiState(
R.string.genre_foreign_country_series
),
@DrawableRes
val banners: List<Int> = listOf<Int>(
val banners: List<Int> = listOf(
R.drawable.banner_1,
R.drawable.banner_2,
R.drawable.banner_3,
R.drawable.banner_4
),
@DrawableRes
val recommends: List<Int> = listOf<Int>(
val recommends: List<Int> = listOf(
R.drawable.recommend_1,
R.drawable.recommend_2,
R.drawable.recommend_3,
Expand All @@ -31,7 +31,7 @@ data class HomeUiState(
R.drawable.recommend_6,
),
@DrawableRes
val rankers: List<Int> = listOf<Int>(
val rankers: List<Int> = listOf(
R.drawable.top_1,
R.drawable.top_2,
R.drawable.top_3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

class HomeViewModel() : ViewModel() {
class HomeViewModel : ViewModel() {
private val _uiState = MutableStateFlow(HomeUiState())
val uiState: StateFlow<HomeUiState> = _uiState.asStateFlow()
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

class NavigationViewModel() : ViewModel() {
class NavigationViewModel : ViewModel() {
private val _uiState = MutableStateFlow(NavigationUiState())
val uiState: StateFlow<NavigationUiState> = _uiState.asStateFlow()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fun SignInScreenPreview() {
innerPadding
SignInScreen(
navigateToSignUp = {},
navigateToMyInfo = { -> }
navigateToMyInfo = { }
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.sopt.and.domain.repository.GetMyHobbyRepository
import org.sopt.and.domain.usecase.GetMyHobbyUseCase
import org.sopt.and.presentation.myinfo.MyInfoViewModel

class MyInfoViewModelFactory() : ViewModelProvider.Factory {
class MyInfoViewModelFactory : ViewModelProvider.Factory {
override fun <T : ViewModel> create(modelClass: Class<T>): T {
return when (modelClass) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.sopt.and.domain.repository.SignInRepository
import org.sopt.and.domain.usecase.SignInUseCase
import org.sopt.and.presentation.signin.SignInViewModel

class SignInViewModelFactory() : ViewModelProvider.Factory {
class SignInViewModelFactory : ViewModelProvider.Factory {
override fun <T : ViewModel> create(modelClass: Class<T>): T {
return when (modelClass) {

Expand Down

0 comments on commit 62d89fc

Please sign in to comment.