mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-2388 Space | Show Personalisation item for every space users (#1368)
This commit is contained in:
parent
366d994fa5
commit
60c1ac3b09
1 changed files with 12 additions and 10 deletions
|
@ -139,7 +139,7 @@ fun SpaceSettingsScreen(
|
|||
item {
|
||||
Section(title = stringResource(id = R.string.settings))
|
||||
}
|
||||
when(state) {
|
||||
when (state) {
|
||||
is ViewState.Success -> {
|
||||
if (state.data.permissions.isOwner()) {
|
||||
item {
|
||||
|
@ -152,17 +152,19 @@ fun SpaceSettingsScreen(
|
|||
item {
|
||||
Divider(paddingStart = 60.dp)
|
||||
}
|
||||
item {
|
||||
Option(image = R.drawable.ic_personalization,
|
||||
text = stringResource(R.string.personalization),
|
||||
onClick = throttledClick(onPersonalizationClicked)
|
||||
)
|
||||
}
|
||||
item {
|
||||
Divider(paddingStart = 60.dp)
|
||||
}
|
||||
}
|
||||
item {
|
||||
Option(
|
||||
image = R.drawable.ic_personalization,
|
||||
text = stringResource(R.string.personalization),
|
||||
onClick = throttledClick(onPersonalizationClicked)
|
||||
)
|
||||
}
|
||||
item {
|
||||
Divider(paddingStart = 60.dp)
|
||||
}
|
||||
}
|
||||
|
||||
else -> {
|
||||
// Do nothing.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue