Skip to content

Commit

Permalink
Rename to ProfileTab
Browse files Browse the repository at this point in the history
  • Loading branch information
imashnake0 committed Dec 30, 2024
1 parent 72386cd commit e032339
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import com.imashnake.animite.core.ui.layouts.BannerLayout
import com.imashnake.animite.media.MediaPage
import com.imashnake.animite.profile.tabs.AboutTab
import com.imashnake.animite.profile.tabs.AnimeTab
import com.imashnake.animite.profile.tabs.ProfileTabs
import com.imashnake.animite.profile.tabs.ProfileTab
import kotlinx.coroutines.launch
import com.imashnake.animite.core.R as coreR
import com.imashnake.animite.navigation.R as navigationR
Expand Down Expand Up @@ -166,8 +166,8 @@ private fun UserTabs(
modifier: Modifier = Modifier,
) {
val coroutineScope = rememberCoroutineScope()
val pagerState = rememberPagerState(pageCount = { ProfileTabs.entries.size })
val titles = ProfileTabs.entries
val pagerState = rememberPagerState(pageCount = { ProfileTab.entries.size })
val titles = ProfileTab.entries
val onBackground = MaterialTheme.colorScheme.onBackground

Column(modifier) {
Expand Down Expand Up @@ -217,9 +217,9 @@ private fun UserTabs(
)
) { page ->
Box(Modifier.fillMaxSize()) {
when (ProfileTabs.entries[page]) {
ProfileTabs.ABOUT -> AboutTab(user)
ProfileTabs.ANIME -> AnimeTab(
when (ProfileTab.entries[page]) {
ProfileTab.ABOUT -> AboutTab(user)
ProfileTab.ANIME -> AnimeTab(
mediaCollection = mediaCollection,
onNavigateToMediaItem = onNavigateToMediaItem,
sharedTransitionScope = sharedTransitionScope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.imashnake.animite.profile.tabs
import androidx.annotation.StringRes
import com.imashnake.animite.profile.R

enum class ProfileTabs(@StringRes val titleRes: Int) {
enum class ProfileTab(@StringRes val titleRes: Int) {
ABOUT(R.string.about),
ANIME(R.string.anime),
MANGA(R.string.manga),
Expand Down

0 comments on commit e032339

Please sign in to comment.