mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
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:
+3
-2
@@ -53,9 +53,10 @@ fun SecureBackupDisableView(
|
||||
title = stringResource(id = R.string.screen_key_backup_disable_title),
|
||||
subTitle = stringResource(id = R.string.screen_key_backup_disable_description),
|
||||
iconVector = CompoundIcons.KeyOffSolid(),
|
||||
content = { Content(state = state) },
|
||||
buttons = { Buttons(state = state) },
|
||||
)
|
||||
) {
|
||||
Content(state = state)
|
||||
}
|
||||
|
||||
AsyncActionView(
|
||||
async = state.disableAction,
|
||||
|
||||
+3
-2
@@ -58,9 +58,10 @@ fun SecureBackupEnterRecoveryKeyView(
|
||||
iconVector = CompoundIcons.KeySolid(),
|
||||
title = stringResource(id = R.string.screen_recovery_key_confirm_title),
|
||||
subTitle = stringResource(id = R.string.screen_recovery_key_confirm_description),
|
||||
content = { Content(state = state) },
|
||||
buttons = { Buttons(state = state, onCreateRecoveryKey = onCreateNewRecoveryKey) }
|
||||
)
|
||||
) {
|
||||
Content(state = state)
|
||||
}
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
+3
-2
@@ -52,9 +52,10 @@ fun SecureBackupSetupView(
|
||||
title = title(state),
|
||||
subTitle = subtitle(state),
|
||||
iconVector = CompoundIcons.KeySolid(),
|
||||
content = { Content(state) },
|
||||
buttons = { Buttons(state, onFinish = onSuccess) },
|
||||
)
|
||||
) {
|
||||
Content(state = state)
|
||||
}
|
||||
|
||||
if (state.showSaveConfirmationDialog) {
|
||||
ConfirmationDialog(
|
||||
|
||||
Reference in New Issue
Block a user