Skip to content

Commit

Permalink
refactor: main 화면 다이얼로그 변수명(#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheonilyeong committed Jan 10, 2025
1 parent 0e0d1c3 commit 269bf19
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ fun MainScreen(
) {
val scrollBehavior = TopAppBarDefaults.exitUntilCollapsedScrollBehavior(rememberTopAppBarState())
var userMenuIsExpanded by remember { mutableStateOf(false) }
var guideDialogIsExpanded by rememberSaveable { mutableStateOf(false) }
var showGuideDialog by rememberSaveable { mutableStateOf(false) }
var state by rememberSaveable { mutableIntStateOf(0) }
val titles = stringArrayResource(R.array.main_tabs_titles)

if (guideDialogIsExpanded) {
if (showGuideDialog) {
GuideDialog(
guideUrl = stringResource(R.string.guide_url),
onDismissButtonClick = { guideDialogIsExpanded = false },
onDismissButtonClick = { showGuideDialog = false },
)
}

Expand Down Expand Up @@ -179,7 +179,7 @@ fun MainScreen(
)
},
actions = {
IconButton(onClick = { guideDialogIsExpanded = true }) {
IconButton(onClick = { showGuideDialog = true }) {
Icon(
imageVector = Icons.AutoMirrored.Outlined.LibraryBooks,
stringResource(R.string.des_main_guide_icon),
Expand Down

0 comments on commit 269bf19

Please sign in to comment.