Skip to content

Commit

Permalink
Boolti-331 style: 프로필 편집 섹션 타이틀 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
mangbaam committed Nov 14, 2024
1 parent 2052eab commit 1b18310
Showing 1 changed file with 32 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,36 @@ fun ProfileEditScreen(

ObserveAsEvents(event) {
when (it) {
ProfileEditEvent.OnLinkAdded -> snackbarHostState.showMessage(linkAddMsg, dismissPrevious = true)
ProfileEditEvent.OnLinkEdited -> snackbarHostState.showMessage(linkEditMsg, dismissPrevious = true)
ProfileEditEvent.OnLinkRemoved -> snackbarHostState.showMessage(linkRemoveMsg, dismissPrevious = true)
ProfileEditEvent.OnSnsAdded -> snackbarHostState.showMessage(snsAddMsg, dismissPrevious = true)
ProfileEditEvent.OnSnsEdited -> snackbarHostState.showMessage(snsEditMsg, dismissPrevious = true)
ProfileEditEvent.OnSnsRemoved -> snackbarHostState.showMessage(snsRemoveMsg, dismissPrevious = true)
ProfileEditEvent.OnLinkAdded -> snackbarHostState.showMessage(
linkAddMsg,
dismissPrevious = true
)

ProfileEditEvent.OnLinkEdited -> snackbarHostState.showMessage(
linkEditMsg,
dismissPrevious = true
)

ProfileEditEvent.OnLinkRemoved -> snackbarHostState.showMessage(
linkRemoveMsg,
dismissPrevious = true
)

ProfileEditEvent.OnSnsAdded -> snackbarHostState.showMessage(
snsAddMsg,
dismissPrevious = true
)

ProfileEditEvent.OnSnsEdited -> snackbarHostState.showMessage(
snsEditMsg,
dismissPrevious = true
)

ProfileEditEvent.OnSnsRemoved -> snackbarHostState.showMessage(
snsRemoveMsg,
dismissPrevious = true
)

ProfileEditEvent.OnSuccessEditProfile -> {
snackbarHostState.showMessage(profileEditSuccessMsg, dismissPrevious = true)
navigateBack()
Expand Down Expand Up @@ -539,6 +563,8 @@ private fun Section(
Text(
modifier = Modifier.padding(horizontal = marginHorizontal),
text = title,
style = MaterialTheme.typography.titleLarge,
color = MaterialTheme.colorScheme.onSurface,
)
Spacer(Modifier.size(16.dp))
content()
Expand Down

0 comments on commit 1b18310

Please sign in to comment.