refactor #1620: removed deprecated imports

This commit is contained in:
Pratyush Singh 2024-05-08 22:26:12 +05:30 committed by Rajan Maurya
parent 226e2b1364
commit b5633a7e23
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,4 @@
[versions]
accompanistSwiperefreshVersion = "0.27.0"
appcompatVersion = "1.6.1"
androidGradlePlugin = "8.3.0"
compileSdk = "34"

View File

@ -90,15 +90,15 @@ fun NotificationScreen(
if (uiState.notificationList.isEmpty()) {
EmptyContentScreen(
modifier = Modifier,
title = stringResource(id = R.string.error_oops),
subTitle = stringResource(id = R.string.no_notification_found),
title = stringResource(R.string.nothing_to_notify),
subTitle = stringResource(R.string.there_is_nothing_to_show),
iconTint = Color.Black,
iconImageVector = Icons.Rounded.Info
)
} else {
LazyColumn {
items(uiState.notificationList) { notification ->
NotificationList(
NotificationListItem(
title = notification.title.toString(),
body = notification.body.toString(),
timestamp = notification.timestamp.toString()
@ -118,7 +118,7 @@ fun NotificationScreen(
}
@Composable
fun NotificationList(title: String, body: String, timestamp: String) {
fun NotificationListItem(title: String, body: String, timestamp: String) {
Card(
modifier = Modifier
.fillMaxWidth()

View File

@ -375,5 +375,7 @@
<string name="self_amount_transfer_is_not_allowed">Self Account transfer is not allowed</string>
<string name="insufficient_balance">Insufficient balance</string>
<string name="error_fetching_balance">Error fetching balance</string>
<string name="nothing_to_notify">Nothing To Notify</string>
<string name="there_is_nothing_to_show">There is nothing to show</string>
</resources>