From cb96baf4fa87f7d7cff21aa2b194a46cbf56624d Mon Sep 17 00:00:00 2001 From: tgyuu-An Date: Sat, 6 Jan 2024 12:31:08 +0900 Subject: [PATCH] =?UTF-8?q?[FEATURE]=20#82=20:=20Survey=20TopBar=20?= =?UTF-8?q?=EC=9E=A5=EC=B0=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../feature/profile/component/WappProfileCard.kt | 2 +- .../com/wap/wapp/feature/survey/SurveyScreen.kt | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/feature/profile/src/main/java/com/wap/wapp/feature/profile/component/WappProfileCard.kt b/feature/profile/src/main/java/com/wap/wapp/feature/profile/component/WappProfileCard.kt index 784cb444..21271744 100644 --- a/feature/profile/src/main/java/com/wap/wapp/feature/profile/component/WappProfileCard.kt +++ b/feature/profile/src/main/java/com/wap/wapp/feature/profile/component/WappProfileCard.kt @@ -34,7 +34,7 @@ internal fun WappProfileCard( modifier = Modifier .fillMaxWidth() .height(150.dp) - .padding(top = 30.dp, start = 10.dp, end = 10.dp), + .padding(start = 10.dp, end = 10.dp), ) { Box( modifier = Modifier.background( diff --git a/feature/survey/src/main/java/com/wap/wapp/feature/survey/SurveyScreen.kt b/feature/survey/src/main/java/com/wap/wapp/feature/survey/SurveyScreen.kt index bfb3600e..a8ecc4fb 100644 --- a/feature/survey/src/main/java/com/wap/wapp/feature/survey/SurveyScreen.kt +++ b/feature/survey/src/main/java/com/wap/wapp/feature/survey/SurveyScreen.kt @@ -23,11 +23,10 @@ import androidx.compose.runtime.collectAsState import androidx.compose.runtime.remember import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext -import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp import com.wap.designsystem.WappTheme -import com.wap.designsystem.component.WappTitle +import com.wap.designsystem.component.WappMainTopBar import com.wap.wapp.core.commmon.extensions.toSupportingText import com.wap.wapp.core.commmon.util.DateUtil import com.wap.wapp.core.commmon.util.DateUtil.yyyyMMddFormatter @@ -93,16 +92,16 @@ private fun SurveyContent( Column( verticalArrangement = Arrangement.spacedBy(16.dp), modifier = Modifier - .padding(paddingValues) - .padding(vertical = 16.dp, horizontal = 8.dp), + .padding(paddingValues), ) { - WappTitle( - title = stringResource(R.string.survey_title), - content = stringResource(R.string.survey_content), + WappMainTopBar( + titleRes = R.string.survey, + contentRes = R.string.survey_content, ) LazyColumn( verticalArrangement = Arrangement.spacedBy(8.dp), + modifier = Modifier.padding(horizontal = 15.dp), ) { items(surveyFormList) { surveyForm -> SurveyFormItemCard( @@ -129,8 +128,7 @@ private fun SurveyFormItemCard( ) { Column( verticalArrangement = Arrangement.spacedBy(16.dp), - modifier = Modifier - .padding(16.dp), + modifier = Modifier.padding(16.dp), ) { Row( modifier = Modifier.fillMaxWidth(),