Skip to content

Commit

Permalink
feat : 선물 등록 실패시 다이얼로그 설명 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HamBP committed Jul 25, 2024
1 parent c5b4c74 commit 6b5198d
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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(
Expand Down Expand Up @@ -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
),
)
}
}
}

0 comments on commit 6b5198d

Please sign in to comment.