mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix duplicated strings and use back button
This commit is contained in:
committed by
Florian Renaud
parent
d55a1ccb07
commit
3efb141afc
+2
-3
@@ -39,6 +39,7 @@ import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import io.element.android.libraries.designsystem.preview.ElementPreviewDark
|
||||
import io.element.android.libraries.designsystem.preview.ElementPreviewLight
|
||||
import io.element.android.libraries.designsystem.theme.components.BackButton
|
||||
import io.element.android.libraries.designsystem.theme.components.CenterAlignedTopAppBar
|
||||
import io.element.android.libraries.designsystem.theme.components.DockedSearchBar
|
||||
import io.element.android.libraries.designsystem.theme.components.Icon
|
||||
@@ -133,9 +134,7 @@ fun CreateRoomSearchBar(
|
||||
},
|
||||
leadingIcon = if (active.value) {
|
||||
{
|
||||
IconButton(onClick = { closeSearchBar() }) {
|
||||
Icon(DrawableR.drawable.ic_arrow_back, stringResource(StringR.string.a11y_back))
|
||||
}
|
||||
BackButton(onClick = { closeSearchBar() })
|
||||
}
|
||||
} else null,
|
||||
trailingIcon = {
|
||||
|
||||
Reference in New Issue
Block a user