diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-28 15:11:50 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-28 15:11:50 +0530 |
commit | c980c898de8417e16942741d469ebef8532b822a (patch) | |
tree | cc0639b9bbe45bb7ff89fe3a956c0619f3d943b2 /ui/compose | |
parent | de6cdfee0e37aab03bfb91e5e90c3ec4bd740fe3 (diff) |
chore: reformat with trailing commas changes
Diffstat (limited to 'ui/compose')
3 files changed, 5 insertions, 14 deletions
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 = |