File tree Expand file tree Collapse file tree
WordPress/src/main/java/org/wordpress/android/ui/voicetocontent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import androidx.compose.material.MaterialTheme
2424import androidx.compose.material.Text
2525import androidx.compose.material.icons.Icons
2626import androidx.compose.material.icons.filled.Close
27+ import androidx.compose.material.icons.filled.Refresh
2728import androidx.compose.material3.Surface
2829import androidx.compose.runtime.Composable
2930import androidx.compose.runtime.collectAsState
@@ -117,7 +118,12 @@ fun ErrorView(model: VoiceToContentUiState) {
117118 ) {
118119 Header (model.header)
119120 Spacer (modifier = Modifier .height(16 .dp))
120- Text (" Unable to use Voice to Content at the moment, please try again later" )
121+ Text (stringResource(id = model.errorPanel?.errorMessage? : R .string.voice_to_content_generic_error))
122+ if (model.errorPanel?.allowRetry == true ) {
123+ IconButton (onClick = model.errorPanel.onRetryTap? : {}) {
124+ Icon (imageVector = Icons .Default .Refresh , contentDescription = null )
125+ }
126+ }
121127 }
122128}
123129
You can’t perform that action at this time.
0 commit comments