Skip to content

Commit

Permalink
[FIX/#208] 토근 관련 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Aug 31, 2024
1 parent 2c990b5 commit dd016d7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import kotlinx.serialization.Serializable

@Serializable
data class TokenReissueResponseDto(
@SerialName("refreshToken")
val refreshToken: String
@SerialName("accessToken")
val accessToken: String
)
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import com.terning.data.dto.response.TokenReissueResponseDto
import com.terning.domain.entity.auth.TokenReissue

fun TokenReissueResponseDto.toTokenReissue(): TokenReissue =
TokenReissue(refreshToken = refreshToken)
TokenReissue(accessToken = accessToken)
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fun SignUpScreen(
showBottomSheet = false
onFetchCharacter(index)
},
initialSelectedOption = signUpState.character
initialSelectedOption = signUpState.profileImage
)
}
Text(
Expand All @@ -126,7 +126,7 @@ fun SignUpScreen(
modifier = modifier.noRippleClickable {
showBottomSheet = true
},
index = signUpState.character
index = signUpState.profileImage
)
}
Column(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.terning.feature.R

data class SignUpState(
val name: String = "",
val character: Int = 0,
val profileImage: Int = 0,
val drawLineColor: Color = Grey500,
@StringRes val helper: Int = R.string.sign_up_helper,
val helperIcon: Int? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class SignUpViewModel @Inject constructor(
}
}

fun fetchCharacter(character: Int) {
_state.value = _state.value.copy(character = character)
fun fetchCharacter(profileImage: Int) {
_state.value = _state.value.copy(profileImage = profileImage)
}

fun fetchAuthId(authId: String) {
Expand All @@ -95,7 +95,7 @@ class SignUpViewModel @Inject constructor(
state.value.run {
SignUpRequest(
name = name,
profileImage = character,
profileImage = profileImage,
authType = KAKA0
)
}
Expand Down

0 comments on commit dd016d7

Please sign in to comment.