From 6d3b28a8e666cca2b2d4851235cbb5515d108852 Mon Sep 17 00:00:00 2001 From: another-simple-pixel Date: Mon, 18 May 2026 09:47:44 -0700 Subject: [PATCH] Revert "WelcomeView: wrap Create profile action button in SectionView card" This reverts commit c61ea0109250e1a75d9c3efd6f8b72d1a67db752. --- .../chat/simplex/common/views/WelcomeView.kt | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt index aa0143a8dc..3b9907eacc 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/WelcomeView.kt @@ -1,7 +1,6 @@ package chat.simplex.common.views import SectionTextFooter -import SectionView import androidx.compose.foundation.* import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.* @@ -155,22 +154,20 @@ fun CreateProfile(chatModel: ChatModel, close: () -> Unit) { } ProfileNameField(shortDescr, "", isValid = { bioFitsLimit(it) }) } - SectionView { - SettingsActionItem( - painterResource(MR.images.ic_check), - stringResource(MR.strings.create_another_profile_button), - disabled = !canCreateProfile(displayName.value) || !bioFitsLimit(shortDescr.value), - textColor = MaterialTheme.colors.primary, - iconColor = MaterialTheme.colors.primary, - click = { - if (chatModel.localUserCreated.value == true) { - createProfileInProfiles(chatModel, displayName.value, shortDescr.value, profileImage.value, close) - } else { - createProfileInNoProfileSetup(displayName.value, profileImage.value, close) - } - }, - ) - } + SettingsActionItem( + painterResource(MR.images.ic_check), + stringResource(MR.strings.create_another_profile_button), + disabled = !canCreateProfile(displayName.value) || !bioFitsLimit(shortDescr.value), + textColor = MaterialTheme.colors.primary, + iconColor = MaterialTheme.colors.primary, + click = { + if (chatModel.localUserCreated.value == true) { + createProfileInProfiles(chatModel, displayName.value, shortDescr.value, profileImage.value, close) + } else { + createProfileInNoProfileSetup(displayName.value, profileImage.value, close) + } + }, + ) SectionTextFooter(generalGetString(MR.strings.your_profile_is_stored_on_your_device)) SectionTextFooter(generalGetString(MR.strings.profile_is_only_shared_with_your_contacts))