Update AboutScreen.kt
This commit is contained in:
parent
8d2662f919
commit
5e961e4ec7
1 changed files with 0 additions and 51 deletions
|
|
@ -95,54 +95,3 @@ fun AboutScreenContent(state: State<AboutScreenState>) {
|
||||||
text = stringResource(R.string.contributors_lead),
|
text = stringResource(R.string.contributors_lead),
|
||||||
modifier = Modifier.padding(top = 18.dp, bottom = 20.dp),
|
modifier = Modifier.padding(top = 18.dp, bottom = 20.dp),
|
||||||
)
|
)
|
||||||
}
|
|
||||||
|
|
||||||
item(key = "MAIN_CONTRIBUTORS") {
|
|
||||||
Row(
|
|
||||||
horizontalArrangement = Arrangement.SpaceEvenly,
|
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
|
||||||
modifier = Modifier.fillMaxWidth(),
|
|
||||||
) {
|
|
||||||
LeadContributor("C0C0B01", stringResource(R.string.lead_role_kettu))
|
|
||||||
LeadContributor("kmmiio99o", stringResource(R.string.lead_role_shiggycord))
|
|
||||||
LeadContributor("pylixonly", stringResource(R.string.lead_role_bunny))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
item(key = "CONTRIBUTORS_DIVIDER") {
|
|
||||||
TextDivider(
|
|
||||||
text = stringResource(R.string.contributors),
|
|
||||||
modifier = Modifier.padding(top = 16.dp, bottom = 6.dp)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
when (val state = state.value) {
|
|
||||||
AboutScreenState.Loading ->
|
|
||||||
item(key = "CONTRIBUTIONS_LOADING") {
|
|
||||||
Box(
|
|
||||||
contentAlignment = Alignment.Center,
|
|
||||||
content = { CircularProgressIndicator() },
|
|
||||||
modifier = Modifier.fillMaxWidth().padding(vertical = 38.dp),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
AboutScreenState.Failure ->
|
|
||||||
item(key = "LOAD_FAILURE") {
|
|
||||||
LoadFailure(modifier = Modifier.fillMaxSize().padding(vertical = 38.dp))
|
|
||||||
}
|
|
||||||
is AboutScreenState.Loaded -> {
|
|
||||||
// Render the two requested contributors as LeadContributor entries
|
|
||||||
item(key = "SELECTED_CONTRIBUTORS") {
|
|
||||||
Row(
|
|
||||||
horizontalArrangement = Arrangement.SpaceEvenly,
|
|
||||||
verticalAlignment = Alignment.CenterVertically,
|
|
||||||
modifier = Modifier.fillMaxWidth(),
|
|
||||||
) {
|
|
||||||
LeadContributor("maisymoe", "Creator - Vendetta")
|
|
||||||
LeadContributor("rushiiMachine", "Manager - Creator")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue