Move content @Composable to the end of the parameter list.

A @Composable `content` parameter should be moved to be the trailing lambda in a composable function.
This commit is contained in:
Benoit Marty 2024-05-29 12:38:14 +02:00
parent 7eb7e21d27
commit e97e21e785
5 changed files with 25 additions and 22 deletions

View file

@ -64,7 +64,6 @@ fun LogoutView(
subTitle = subtitle(state),
iconVector = CompoundIcons.KeySolid(),
modifier = modifier,
content = { Content(state) },
buttons = {
Buttons(
state = state,
@ -74,7 +73,9 @@ fun LogoutView(
}
)
},
)
) {
Content(state)
}
LogoutActionDialog(
state.logoutAction,