mirror of
https://github.com/openMF/mobile-wallet.git
synced 2026-02-06 11:07:02 +00:00
refactor #1620: removed deprecated imports
This commit is contained in:
parent
226e2b1364
commit
b5633a7e23
@ -1,5 +1,4 @@
|
||||
[versions]
|
||||
accompanistSwiperefreshVersion = "0.27.0"
|
||||
appcompatVersion = "1.6.1"
|
||||
androidGradlePlugin = "8.3.0"
|
||||
compileSdk = "34"
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user