diff --git a/app/src/main/java/com/aiosman/riderpro/ui/index/tabs/search/SearchScreen.kt b/app/src/main/java/com/aiosman/riderpro/ui/index/tabs/search/SearchScreen.kt index 527e5c8..b083023 100644 --- a/app/src/main/java/com/aiosman/riderpro/ui/index/tabs/search/SearchScreen.kt +++ b/app/src/main/java/com/aiosman/riderpro/ui/index/tabs/search/SearchScreen.kt @@ -259,7 +259,7 @@ fun MomentResultTab() { ) { MomentCard(momentEntity = momentItem, hideAction = true) } - Spacer(modifier = Modifier.padding(16.dp)) +// Spacer(modifier = Modifier.padding(16.dp)) } } } @@ -333,33 +333,31 @@ fun UserItem( ) } Spacer(modifier = Modifier.width(16.dp)) - Box( - modifier = Modifier - ) { - if (accountProfile.id != AppState.UserId) { - if (accountProfile.isFollowing) { - ActionButton( - text = stringResource(R.string.following_upper), - backgroundColor = Color(0xFF9E9E9E), - contentPadding = PaddingValues(vertical = 4.dp, horizontal = 8.dp), - color = Color.White, - fullWidth = false - ) { - onFollow(accountProfile) - } - } else { - ActionButton( - text = stringResource(R.string.follow_upper), - backgroundColor = Color(0xffda3832), - contentPadding = PaddingValues(vertical = 4.dp, horizontal = 8.dp), - color = Color.White, - fullWidth = false - ) { - onFollow(accountProfile) - } - } - } - } +// Box { +// if (accountProfile.id != AppState.UserId) { +// if (accountProfile.isFollowing) { +// ActionButton( +// text = stringResource(R.string.following_upper), +// backgroundColor = Color(0xFF9E9E9E), +// contentPadding = PaddingValues(vertical = 4.dp, horizontal = 8.dp), +// color = Color.White, +// fullWidth = false +// ) { +// onFollow(accountProfile) +// } +// } else { +// ActionButton( +// text = stringResource(R.string.follow_upper), +// backgroundColor = Color(0xffda3832), +// contentPadding = PaddingValues(vertical = 4.dp, horizontal = 8.dp), +// color = Color.White, +// fullWidth = false +// ) { +// onFollow(accountProfile) +// } +// } +// } +// } } } } \ No newline at end of file diff --git a/app/src/main/java/com/aiosman/riderpro/ui/post/Post.kt b/app/src/main/java/com/aiosman/riderpro/ui/post/Post.kt index d441447..da93fd4 100644 --- a/app/src/main/java/com/aiosman/riderpro/ui/post/Post.kt +++ b/app/src/main/java/com/aiosman/riderpro/ui/post/Post.kt @@ -688,16 +688,16 @@ fun Header( Spacer(modifier = Modifier.width(8.dp)) Text(text = nickname ?: "", fontWeight = FontWeight.Bold) - if (AppState.UserId != userId) { - FollowButton( - isFollowing = isFollowing, - onFollowClick = onFollowClick, - imageModifier = Modifier - .height(18.dp) - .width(80.dp), - fontSize = 12.sp - ) - } +// if (AppState.UserId != userId) { +// FollowButton( +// isFollowing = isFollowing, +// onFollowClick = onFollowClick, +// imageModifier = Modifier +// .height(18.dp) +// .width(80.dp), +// fontSize = 12.sp +// ) +// } if (AppState.UserId == userId) { Spacer(modifier = Modifier.weight(1f)) Box {