Skip to content

Commit

Permalink
feat(PartScreen): add the ability to click on profile picture in comm…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
Skythrew committed Aug 15, 2024
1 parent 8c2c048 commit 5cd6539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/skythrew/kattpad/screens/PartScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.skythrew.kattpad.screens
import android.text.format.DateFormat
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -271,6 +272,7 @@ fun CommentRow(navController: NavController, comment: Comment) {
modifier = Modifier
.clip(CircleShape)
.height(40.dp)
.clickable { navController.navigate(ProfileScreen(comment.data.user.username)) }
)
}
Column (modifier = Modifier.weight(1F)){
Expand Down

0 comments on commit 5cd6539

Please sign in to comment.