From c980c898de8417e16942741d469ebef8532b822a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 28 May 2024 15:11:50 +0530 Subject: chore: reformat with trailing commas changes --- ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt | 7 ++----- .../main/kotlin/app/passwordstore/ui/compose/PasswordField.kt | 10 ++-------- .../main/kotlin/app/passwordstore/ui/compose/PasswordItem.kt | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) (limited to 'ui/compose') diff --git a/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt b/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt index c076686f..4af1a80e 100644 --- a/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt +++ b/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt @@ -39,10 +39,7 @@ public fun APSAppBar( navigationIcon = { if (navigationIcon != null) { IconButton(onClick = { onNavigationIconClick.invoke() }) { - Icon( - painter = navigationIcon, - contentDescription = null, - ) + Icon(painter = navigationIcon, contentDescription = null) } } }, @@ -68,7 +65,7 @@ private fun APSAppBarPreview() { contentDescription = "Search items", ) } - } + }, ) } } diff --git a/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordField.kt b/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordField.kt index d2a04777..b8cc74b8 100644 --- a/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordField.kt +++ b/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordField.kt @@ -56,10 +56,7 @@ private fun ToggleButton( val icon = if (visible) painterResource(id = R.drawable.baseline_visibility_off_24) else painterResource(id = R.drawable.baseline_visibility_24) - Icon( - painter = icon, - contentDescription = contentDescription, - ) + Icon(painter = icon, contentDescription = contentDescription) } } @@ -70,10 +67,7 @@ public fun CopyButton( modifier: Modifier = Modifier, ) { val clipboard = LocalClipboardManager.current - IconButton( - onClick = { clipboard.setText(AnnotatedString(textToCopy)) }, - modifier = modifier, - ) { + IconButton(onClick = { clipboard.setText(AnnotatedString(textToCopy)) }, modifier = modifier) { Icon( painter = painterResource(R.drawable.ic_content_copy), contentDescription = stringResource(buttonLabelRes), diff --git a/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordItem.kt b/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordItem.kt index 63cc8304..01b42093 100644 --- a/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordItem.kt +++ b/ui/compose/src/main/kotlin/app/passwordstore/ui/compose/PasswordItem.kt @@ -34,7 +34,7 @@ public fun PasswordItem( label: String, type: ItemType, onClick: () -> Unit, - modifier: Modifier = Modifier + modifier: Modifier = Modifier, ) { Row( modifier = -- cgit v1.2.3