File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/atomic Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ import androidx.compose.foundation.layout.padding
1313import androidx.compose.foundation.shape.RoundedCornerShape
1414import androidx.compose.runtime.Composable
1515import androidx.compose.ui.Modifier
16+ import androidx.compose.ui.res.stringResource
1617import androidx.compose.ui.unit.dp
1718import io.element.android.compound.theme.ElementTheme
1819import io.element.android.libraries.designsystem.preview.ElementPreview
1920import io.element.android.libraries.designsystem.preview.PreviewsDayNight
2021import io.element.android.libraries.designsystem.theme.components.Text
22+ import io.element.android.libraries.ui.strings.CommonStrings
2123
2224@Composable
2325fun BetaLabel (
@@ -36,7 +38,7 @@ fun BetaLabel(
3638 shape = shape,
3739 )
3840 .padding(horizontal = 8 .dp, vertical = 4 .dp),
39- text = " BETA " ,
41+ text = stringResource( CommonStrings .common_beta).uppercase() ,
4042 style = ElementTheme .typography.fontBodySmMedium,
4143 color = ElementTheme .colors.textInfoPrimary,
4244 )
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ package io.element.android.libraries.designsystem.atomic.molecules
99
1010import androidx.compose.foundation.layout.Arrangement
1111import androidx.compose.foundation.layout.Column
12- import androidx.compose.foundation.layout.Row
12+ import androidx.compose.foundation.layout.FlowRow
1313import androidx.compose.foundation.layout.Spacer
1414import androidx.compose.foundation.layout.fillMaxWidth
1515import androidx.compose.foundation.layout.height
@@ -51,10 +51,11 @@ fun IconTitleSubtitleMolecule(
5151 style = iconStyle,
5252 )
5353 Spacer (modifier = Modifier .height(16 .dp))
54- Row (
54+ FlowRow (
5555 modifier = Modifier .fillMaxWidth(),
56- verticalAlignment = Alignment .CenterVertically ,
57- horizontalArrangement = Arrangement .spacedBy(4 .dp, Alignment .CenterHorizontally )
56+ itemVerticalAlignment = Alignment .CenterVertically ,
57+ horizontalArrangement = Arrangement .spacedBy(4 .dp, Alignment .CenterHorizontally ),
58+ verticalArrangement = Arrangement .spacedBy(4 .dp),
5859 ) {
5960 Text (
6061 text = title,
You can’t perform that action at this time.
0 commit comments