|
@@ -9,7 +9,6 @@ import androidx.compose.foundation.background
|
|
|
import androidx.compose.foundation.clickable
|
|
|
import androidx.compose.foundation.interaction.MutableInteractionSource
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
-import androidx.compose.foundation.layout.Box
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
import androidx.compose.foundation.layout.PaddingValues
|
|
|
import androidx.compose.foundation.layout.Row
|
|
@@ -197,19 +196,16 @@ private fun ExtensionDetails(
|
|
|
|
|
|
@Composable
|
|
|
private fun WarningBanner(@StringRes textRes: Int) {
|
|
|
- Box(
|
|
|
+ Text(
|
|
|
+ text = stringResource(textRes),
|
|
|
modifier = Modifier
|
|
|
.fillMaxWidth()
|
|
|
.background(MaterialTheme.colorScheme.error)
|
|
|
.padding(16.dp),
|
|
|
- contentAlignment = Alignment.Center,
|
|
|
- ) {
|
|
|
- Text(
|
|
|
- text = stringResource(textRes),
|
|
|
- color = MaterialTheme.colorScheme.onError,
|
|
|
- style = MaterialTheme.typography.bodyMedium,
|
|
|
- )
|
|
|
- }
|
|
|
+ color = MaterialTheme.colorScheme.onError,
|
|
|
+ style = MaterialTheme.typography.bodyMedium,
|
|
|
+ textAlign = TextAlign.Center,
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
@Composable
|