Skip to content

Commit

Permalink
#210 유저 이미지 버튼 이벤트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Aug 21, 2023
1 parent 9a394b0 commit 8d49372
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ class MyPageViewModel @Inject constructor(

fun navigateToMyCommentList() = event(MyPageEvent.NavigateToMyCommentList)

fun clickMyImage() = event(MyPageEvent.ClickMyImage)

sealed class MyPageEvent {
object Login : MyPageEvent()
object SignUp : MyPageEvent()
object NavigateToMyPageMore : MyPageEvent()
object NavigateToMyCommentList : MyPageEvent()
object ClickMyImage : MyPageEvent()
}

private val _token = MutableSharedFlow<TokenState<CurrentTokens>>(replay = 1, onBufferOverflow = BufferOverflow.DROP_OLDEST)
Expand Down
1 change: 1 addition & 0 deletions feature/mypage/src/main/res/layout/fragment_my_page.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
android:layout_marginStart="20dp"
android:layout_marginTop="10dp"
loadUserImage="@{user.profileUrl}"
android:onClick="@{()->viewModel.clickMyImage()}"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

Expand Down

0 comments on commit 8d49372

Please sign in to comment.