From 1b183109620b448b985b0db7e0266b694f44b97b Mon Sep 17 00:00:00 2001 From: mangbaam Date: Thu, 14 Nov 2024 23:31:23 +0900 Subject: [PATCH] =?UTF-8?q?Boolti-331=20style:=20=ED=94=84=EB=A1=9C?= =?UTF-8?q?=ED=95=84=20=ED=8E=B8=EC=A7=91=20=EC=84=B9=EC=85=98=20=ED=83=80?= =?UTF-8?q?=EC=9D=B4=ED=8B=80=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profileedit/profile/ProfileEditScreen.kt | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 deletions(-) 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()