1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

App | Redesign | Update account-and-data screen (#2177)

This commit is contained in:
Evgenii Kozlov 2022-04-11 15:06:30 +03:00 committed by GitHub
parent 2f0b098a9c
commit b1630655d7
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,10 +51,11 @@ fun AccountAndDataScreen(
)
Divider()
Section(stringResource(R.string.account))
Action(
name = stringResource(R.string.reset_account),
color = colorResource(R.color.anytype_text_red),
onClick = onResetAccountClicked
ActionWithProgressBar(
name = stringResource(R.string.log_out),
color = colorResource(R.color.text_primary),
onClick = onLogoutClicked,
isInProgress = isLogoutInProgress
)
Divider()
Action(
@ -63,14 +64,6 @@ fun AccountAndDataScreen(
onClick = onDeleteAccountClicked
)
Divider()
Box(Modifier.height(20.dp))
ActionWithProgressBar(
name = stringResource(R.string.log_out),
color = colorResource(R.color.text_primary),
onClick = onLogoutClicked,
isInProgress = isLogoutInProgress
)
Divider()
Box(Modifier.height(54.dp))
}
}