Skip to content

Commit

Permalink
Fix deprecated icons and dividers (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
davotoula authored Mar 11, 2024
1 parent 037f947 commit ef7efa5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowRight
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
Expand Down Expand Up @@ -84,7 +84,7 @@ fun PrimalCallToActionButton(
modifier = Modifier
.size(36.dp)
.align(CenterVertically),
imageVector = Icons.Default.KeyboardArrowRight,
imageVector = Icons.AutoMirrored.Filled.KeyboardArrowRight,
contentDescription = null,
colorFilter = ColorFilter.tint(color = AppTheme.extraColorScheme.onSurfaceVariantAlt1),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Divider
import androidx.compose.material3.VerticalDivider
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -128,7 +128,7 @@ fun ProfileHero(
color = AppTheme.colorScheme.secondary,
)
Spacer(modifier = Modifier.width(6.dp))
Divider(
VerticalDivider(
modifier = Modifier
.height(16.dp)
.width(1.dp),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.KeyboardArrowRight
import androidx.compose.material.icons.automirrored.outlined.KeyboardArrowRight
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.ListItem
Expand Down Expand Up @@ -71,7 +71,7 @@ fun SettingsHomeScreen(
title = it.title(),
onClick = { onSettingsSectionClick(it) },
leadingIcon = it.leadingIcon(),
trailingIcon = Icons.Outlined.KeyboardArrowRight,
trailingIcon = Icons.AutoMirrored.Outlined.KeyboardArrowRight,
)
PrimalDivider()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowForwardIos
import androidx.compose.material.icons.automirrored.filled.ArrowForwardIos
import androidx.compose.material.icons.outlined.Info
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.ExperimentalMaterial3Api
Expand Down Expand Up @@ -368,7 +368,7 @@ private fun NostrProfileLightingAddressSection(lightningAddress: String?, onEdit
headlineText = stringResource(id = R.string.settings_wallet_ln_address),
supportText = lightningAddress,
trailingContent = {
Icon(imageVector = Icons.Default.ArrowForwardIos, contentDescription = null)
Icon(imageVector = Icons.AutoMirrored.Filled.ArrowForwardIos, contentDescription = null)
},
onClick = onEditProfileClick,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowForwardIos
import androidx.compose.material.icons.automirrored.filled.ArrowForwardIos
import androidx.compose.material3.Card
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
Expand Down Expand Up @@ -261,7 +261,7 @@ private fun ZapDefaultListItem(
)
},
trailingContent = {
Icon(imageVector = Icons.Default.ArrowForwardIos, contentDescription = null)
Icon(imageVector = Icons.AutoMirrored.Filled.ArrowForwardIos, contentDescription = null)
},
)
}
Expand Down Expand Up @@ -300,7 +300,7 @@ private fun ZapCustomPresets(
)
},
trailingContent = {
Icon(imageVector = Icons.Default.ArrowForwardIos, contentDescription = null)
Icon(imageVector = Icons.AutoMirrored.Filled.ArrowForwardIos, contentDescription = null)
},
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.material3.Divider
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand All @@ -20,7 +20,7 @@ fun TransactionsHeaderListItem(modifier: Modifier, day: String) {
modifier = modifier.padding(vertical = 8.dp),
contentAlignment = Alignment.Center,
) {
Divider(
HorizontalDivider(
modifier = Modifier.fillMaxWidth(),
thickness = (0.5).dp,
)
Expand Down

0 comments on commit ef7efa5

Please sign in to comment.