diff --git a/presentation/src/main/java/com/nexters/boolti/presentation/screen/profileedit/profile/ProfileEditScreen.kt b/presentation/src/main/java/com/nexters/boolti/presentation/screen/profileedit/profile/ProfileEditScreen.kt index 132305e6..371ccf10 100644 --- a/presentation/src/main/java/com/nexters/boolti/presentation/screen/profileedit/profile/ProfileEditScreen.kt +++ b/presentation/src/main/java/com/nexters/boolti/presentation/screen/profileedit/profile/ProfileEditScreen.kt @@ -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() @@ -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()