From 6b5198d74fe9630ea8352d102e748a2c2c37224d Mon Sep 17 00:00:00 2001 From: algosketch Date: Fri, 26 Jul 2024 02:24:50 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20=EC=84=A0=EB=AC=BC=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=EC=8B=A4=ED=8C=A8=EC=8B=9C=20=EB=8B=A4=EC=9D=B4?= =?UTF-8?q?=EC=96=BC=EB=A1=9C=EA=B7=B8=20=EC=84=A4=EB=AA=85=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../boolti/presentation/screen/home/GiftDialog.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/presentation/src/main/java/com/nexters/boolti/presentation/screen/home/GiftDialog.kt b/presentation/src/main/java/com/nexters/boolti/presentation/screen/home/GiftDialog.kt index a5f9b5a7..e2e649a4 100644 --- a/presentation/src/main/java/com/nexters/boolti/presentation/screen/home/GiftDialog.kt +++ b/presentation/src/main/java/com/nexters/boolti/presentation/screen/home/GiftDialog.kt @@ -1,13 +1,17 @@ package com.nexters.boolti.presentation.screen.home +import androidx.compose.foundation.layout.padding import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.unit.dp import com.nexters.boolti.presentation.R import com.nexters.boolti.presentation.component.BTDialog import com.nexters.boolti.presentation.theme.Grey15 +import com.nexters.boolti.presentation.theme.Grey50 @Composable fun GiftDialog( @@ -65,5 +69,15 @@ fun GiftDialog( textAlign = TextAlign.Center ), ) + if (status == GiftStatus.FAILED) { + Text( + modifier = Modifier.padding(top = 4.dp), + text = stringResource(id = R.string.gift_registration_failed_dialog), + style = MaterialTheme.typography.titleLarge.copy( + color = Grey50, + textAlign = TextAlign.Center + ), + ) + } } } \ No newline at end of file