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 46bdd04c28
commit aab347e393

View File

@@ -104,7 +104,6 @@ fun HomeScreen(navigator: DestinationsNavigator) {
}
Next()
InfoCard()
DonateCard()
LearnMoreCard()
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
private fun InfoCard() {
val context = LocalContext.current