diff --git a/ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/error/BottomSheetErrorView.kt b/ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/error/BottomSheetErrorView.kt index 5b61246e9..acf8ccfd2 100644 --- a/ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/error/BottomSheetErrorView.kt +++ b/ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/error/BottomSheetErrorView.kt @@ -1,5 +1,6 @@ package co.electriccoin.zcash.ui.screen.error +import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding @@ -10,8 +11,10 @@ import androidx.compose.material3.SheetState import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier +import androidx.compose.ui.res.painterResource import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.dp +import co.electriccoin.zcash.ui.R import co.electriccoin.zcash.ui.design.component.ButtonState import co.electriccoin.zcash.ui.design.component.Spacer import co.electriccoin.zcash.ui.design.component.ZashiButton @@ -48,6 +51,11 @@ fun BottomSheetContent(state: ErrorState, modifier: Modifier = Modifier) { .verticalScroll(rememberScrollState()) .padding(horizontal = 24.dp) ) { + Image( + painter = painterResource(R.drawable.ic_error_warning), + contentDescription = null + ) + Spacer(12.dp) Text( text = state.title.getValue(), color = ZashiColors.Text.textPrimary, diff --git a/ui-lib/src/main/res/ui/error/drawable-night/ic_error_warning.xml b/ui-lib/src/main/res/ui/error/drawable-night/ic_error_warning.xml new file mode 100644 index 000000000..effecc2a4 --- /dev/null +++ b/ui-lib/src/main/res/ui/error/drawable-night/ic_error_warning.xml @@ -0,0 +1,16 @@ + + + + diff --git a/ui-lib/src/main/res/ui/error/drawable/ic_error_warning.xml b/ui-lib/src/main/res/ui/error/drawable/ic_error_warning.xml new file mode 100644 index 000000000..bb2f82b2e --- /dev/null +++ b/ui-lib/src/main/res/ui/error/drawable/ic_error_warning.xml @@ -0,0 +1,16 @@ + + + + diff --git a/ui-lib/src/main/res/ui/error/values/strings.xml b/ui-lib/src/main/res/ui/error/values/strings.xml index b2de27275..0da7af37c 100644 --- a/ui-lib/src/main/res/ui/error/values/strings.xml +++ b/ui-lib/src/main/res/ui/error/values/strings.xml @@ -3,7 +3,7 @@ An error occurred Unknown cause. Please contact our support team if the problem persists . - Error during sync + Syncing error Shielding error An error happened during the last shielding transaction. You can try again later or report this issue if the problem persists.\n\n%s