removes unecessary list of icons option from drawer

This commit is contained in:
Vitor Pamplona
2025-11-12 18:19:28 -05:00
parent 8d41b58167
commit ee52f10192
@@ -516,7 +516,7 @@ fun ListContent(
NavigationRow( NavigationRow(
title = R.string.user_preferences, title = R.string.user_preferences,
icons = listOf(Icons.Outlined.Translate), icon = Icons.Outlined.Translate,
tint = MaterialTheme.colorScheme.onBackground, tint = MaterialTheme.colorScheme.onBackground,
nav = nav, nav = nav,
route = Route.UserSettings, route = Route.UserSettings,
@@ -599,27 +599,10 @@ fun NavigationRow(
tint: Color, tint: Color,
nav: INav, nav: INav,
route: Route, route: Route,
) {
NavigationRow(
title = title,
icons = listOf(icon),
tint = tint,
nav = nav,
route = route,
)
}
@Composable
fun NavigationRow(
title: Int,
icons: List<ImageVector>,
tint: Color,
nav: INav,
route: Route,
) { ) {
IconRow( IconRow(
title = title, title = title,
icons = icons, icon = icon,
tint = tint, tint = tint,
onClick = { onClick = {
nav.closeDrawer() nav.closeDrawer()
@@ -669,21 +652,6 @@ fun IconRow(
icon: ImageVector, icon: ImageVector,
tint: Color, tint: Color,
onClick: () -> Unit, onClick: () -> Unit,
) {
IconRow(
title = title,
icons = listOf(icon),
tint = tint,
onClick = onClick,
)
}
@Composable
fun IconRow(
title: Int,
icons: List<ImageVector>,
tint: Color,
onClick: () -> Unit,
) { ) {
Row( Row(
modifier = modifier =
@@ -698,14 +666,12 @@ fun IconRow(
modifier = IconRowModifier, modifier = IconRowModifier,
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
) { ) {
icons.forEach { icon -> Icon(
Icon( imageVector = icon,
imageVector = icon, contentDescription = stringRes(title),
contentDescription = stringRes(title), modifier = Size22Modifier.padding(end = 4.dp),
modifier = Size22Modifier.padding(end = 4.dp), tint = tint,
tint = tint, )
)
}
Text( Text(
modifier = IconRowTextModifier, modifier = IconRowTextModifier,