Skip to content

Commit

Permalink
[REFACTOR] #63 : GuestScreen, UserScreen -> GuestProfile, UserProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Dec 28, 2023
1 parent 4cd6dbb commit f13759c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import com.wap.designsystem.WappTheme
import com.wap.wapp.core.designresource.R.drawable
import com.wap.wapp.core.designresource.R.string
import com.wap.wapp.feature.profile.component.WappProfileCard
import com.wap.wapp.feature.profile.screen.GuestScreen
import com.wap.wapp.feature.profile.screen.UserScreen
import com.wap.wapp.feature.profile.screen.GuestProfile
import com.wap.wapp.feature.profile.screen.UserProfile

@Composable
internal fun ProfileRoute(
Expand Down Expand Up @@ -95,7 +95,7 @@ internal fun ProfileScreen(
userName = "$userName",
)

UserScreen(eventsState = eventsState)
UserProfile(eventsState = eventsState)
}

Role.NORMAL -> {
Expand All @@ -113,7 +113,7 @@ internal fun ProfileScreen(
userName = "$userName",
)

UserScreen(eventsState = eventsState)
UserProfile(eventsState = eventsState)
}

Role.GUEST -> {
Expand All @@ -131,7 +131,7 @@ internal fun ProfileScreen(
userName = stringResource(id = R.string.non_user),
)

GuestScreen(navigateToSignInScreen = navigateToSignInScreen)
GuestProfile(navigateToSignInScreen = navigateToSignInScreen)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.wap.designsystem.WappTheme
import com.wap.wapp.feature.profile.R

@Composable
internal fun GuestScreen(navigateToSignInScreen: () -> Unit) {
internal fun GuestProfile(navigateToSignInScreen: () -> Unit) {
Text(
text = SpannableGuestText(),
color = WappTheme.colors.white,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import com.wap.wapp.feature.profile.component.WappAttendacneRow
import com.wap.wapp.feature.profile.component.WappSurveyHistoryRow

@Composable
internal fun UserScreen(eventsState: ProfileViewModel.EventsState) {
internal fun UserProfile(eventsState: ProfileViewModel.EventsState) {
Column(modifier = Modifier.padding(horizontal = 10.dp)) {
handleMonthEventsState(eventsState = eventsState)

Expand Down

0 comments on commit f13759c

Please sign in to comment.