mirror of
https://github.com/revanced/revanced-manager-compose-old.git
synced 2025-04-29 22:14:28 +02:00
refactor: rename fn to onClick in SocialItem
This commit is contained in:
parent
0533381dd6
commit
94e2f44131
@ -15,9 +15,9 @@ import androidx.compose.ui.res.stringResource
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun SocialItem(@StringRes label: Int, imageVector: ImageVector? = null, fn: () -> Unit) {
|
||||
fun SocialItem(@StringRes label: Int, imageVector: ImageVector? = null, onClick: () -> Unit) {
|
||||
ListItem(
|
||||
modifier = Modifier.clickable { fn() },
|
||||
modifier = Modifier.clickable { onClick() },
|
||||
leadingContent = {
|
||||
if (imageVector != null) {
|
||||
Icon(
|
||||
@ -32,9 +32,9 @@ fun SocialItem(@StringRes label: Int, imageVector: ImageVector? = null, fn: () -
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun SocialItem(@StringRes label: Int, @DrawableRes painterResource: Int? = null, fn: () -> Unit) {
|
||||
fun SocialItem(@StringRes label: Int, @DrawableRes painterResource: Int? = null, onClick: () -> Unit) {
|
||||
ListItem(
|
||||
modifier = Modifier.clickable { fn() },
|
||||
modifier = Modifier.clickable { onClick() },
|
||||
leadingContent = {
|
||||
if (painterResource != null) {
|
||||
Icon(
|
||||
|
Loading…
x
Reference in New Issue
Block a user