Skip to content

Commit

Permalink
[Setting] Error Message 처리 고도화
Browse files Browse the repository at this point in the history
  • Loading branch information
ajou4095 committed Feb 4, 2024
1 parent 89ed9c5 commit 3dc58f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ac.dnd.bookkeeping.android.presentation.ui.main.home.event.common.group
import ac.dnd.bookkeeping.android.presentation.R
import ac.dnd.bookkeeping.android.presentation.common.theme.Gray200
import ac.dnd.bookkeeping.android.presentation.common.theme.Headline2
import ac.dnd.bookkeeping.android.presentation.common.util.ErrorObserver
import ac.dnd.bookkeeping.android.presentation.common.util.LaunchedEffectWithLifecycle
import ac.dnd.bookkeeping.android.presentation.common.util.coroutine.event.EventFlow
import ac.dnd.bookkeeping.android.presentation.common.util.coroutine.event.MutableEventFlow
Expand Down Expand Up @@ -58,6 +59,7 @@ fun AddGroupScreen(
state = state
)
}
ErrorObserver(viewModel)

AddGroupScreen(
appState = appState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import ac.dnd.bookkeeping.android.presentation.common.util.coroutine.event.Mutab
import ac.dnd.bookkeeping.android.presentation.common.util.coroutine.event.eventObserve
import ac.dnd.bookkeeping.android.presentation.common.view.BottomSheetScreen
import ac.dnd.bookkeeping.android.presentation.common.view.CustomTextField
import ac.dnd.bookkeeping.android.presentation.common.view.DialogScreen
import ac.dnd.bookkeeping.android.presentation.common.view.confirm.ConfirmButton
import ac.dnd.bookkeeping.android.presentation.common.view.confirm.ConfirmButtonProperties
import ac.dnd.bookkeeping.android.presentation.common.view.confirm.ConfirmButtonSize
Expand Down Expand Up @@ -57,7 +56,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
Expand All @@ -84,16 +82,6 @@ fun SearchRelationScreen(
}
ErrorObserver(viewModel)

var isDialogShowing by remember { mutableStateOf(false) }

DialogScreen(
isShowing = isDialogShowing,
title = stringResource(id = R.string.error_dialog_title),
onDismissRequest = {
isDialogShowing = false
}
)

SearchRelationScreen(
appState = appState,
model = model,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package ac.dnd.bookkeeping.android.presentation.ui.main.home.history

import ac.dnd.bookkeeping.android.presentation.common.util.ErrorObserver
import ac.dnd.bookkeeping.android.presentation.ui.main.ApplicationState
import ac.dnd.bookkeeping.android.presentation.ui.main.home.history.main.HistoryMainModel
import ac.dnd.bookkeeping.android.presentation.ui.main.home.history.main.HistoryMainScreen
Expand All @@ -22,6 +23,7 @@ fun HistoryScreen(
historyInfo = historyInfo
)
}
ErrorObserver(viewModel)

HistoryMainScreen(
appState = appState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import ac.dnd.bookkeeping.android.presentation.common.theme.Space20
import ac.dnd.bookkeeping.android.presentation.common.theme.Space24
import ac.dnd.bookkeeping.android.presentation.common.theme.Space4
import ac.dnd.bookkeeping.android.presentation.common.theme.Space8
import ac.dnd.bookkeeping.android.presentation.common.util.ErrorObserver
import ac.dnd.bookkeeping.android.presentation.common.view.chip.ChipType
import ac.dnd.bookkeeping.android.presentation.common.view.chip.GroupChipListComponent
import ac.dnd.bookkeeping.android.presentation.common.view.textfield.TypingTextField
Expand Down Expand Up @@ -97,6 +98,7 @@ fun HistoryDetailScreen(
historyGroups = groups,
)
}
ErrorObserver(viewModel)

var searchText by remember { mutableStateOf("") }
var selectedGroupId by remember {
Expand Down

0 comments on commit 3dc58f9

Please sign in to comment.