manager: remove donate card from home

This commit is contained in:
Rifat Azad
2024-12-13 01:28:23 +06:00
committed by rifsxd
parent 1f18da4a95
commit 377d7f28ba

View File

@@ -104,7 +104,6 @@ fun HomeScreen(navigator: DestinationsNavigator) {
} }
Next() Next()
InfoCard() InfoCard()
DonateCard()
LearnMoreCard() LearnMoreCard()
Spacer(Modifier) Spacer(Modifier)
} }
@@ -368,33 +367,6 @@ fun LearnMoreCard() {
} }
} }
@Composable
fun DonateCard() {
val uriHandler = LocalUriHandler.current
ElevatedCard {
Row(modifier = Modifier
.fillMaxWidth()
.clickable {
uriHandler.openUri("https://patreon.com/weishu")
}
.padding(24.dp), verticalAlignment = Alignment.CenterVertically) {
Column {
Text(
text = stringResource(R.string.home_support_title),
style = MaterialTheme.typography.titleSmall
)
Spacer(Modifier.height(4.dp))
Text(
text = stringResource(R.string.home_support_content),
style = MaterialTheme.typography.bodyMedium
)
}
}
}
}
@Composable @Composable
private fun InfoCard() { private fun InfoCard() {
val context = LocalContext.current val context = LocalContext.current