Skip to content

Commit

Permalink
Migration, Kotlin enum values -> entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluu committed Aug 6, 2023
1 parent 5bcc27a commit 63810e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private fun PreviewWeeklyDrawer() {
AppTheme {
WeeklyDrawer(
title = "Sample",
menus = UI_NAV_ITEM.values().iterator(),
menus = UI_NAV_ITEM.entries.iterator(),
selectedMenu = UI_NAV_ITEM.NAVER,
onEventAction = {}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ internal fun WeeklyScreen(
) {
WeeklyDrawer(
title = stringResource(R.string.app_name),
menus = UI_NAV_ITEM.values().iterator(),
menus = UI_NAV_ITEM.entries.iterator(),
selectedMenu = naviItem
) { event ->
onEventAction(event)
Expand Down

0 comments on commit 63810e8

Please sign in to comment.