Skip to content

Commit 92bed77

Browse files
committed
Revert "Replaced hardcoded string with string resource"
This reverts commit 6d0c530.
1 parent 6d0c530 commit 92bed77

File tree

2 files changed

+1
-3
lines changed
  • composeApp/src/commonMain

2 files changed

+1
-3
lines changed

composeApp/src/commonMain/composeResources/values/string.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
<resources>
33
<string name="error_occurred">Error occurred</string>
44
<string name="ok">OK</string>
5-
<string name="error_info_unavailable">Error information not available</string>
65
</resources>

composeApp/src/commonMain/kotlin/com/developersbreach/kotlindictionarymultiplatform/ui/components/UiStateHandler.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import androidx.compose.ui.Alignment
1111
import androidx.compose.ui.Modifier
1212
import androidx.compose.runtime.saveable.rememberSaveable
1313
import kotlindictionarymultiplatform.composeapp.generated.resources.Res
14-
import kotlindictionarymultiplatform.composeapp.generated.resources.error_info_unavailable
1514
import kotlindictionarymultiplatform.composeapp.generated.resources.error_occurred
1615
import org.jetbrains.compose.resources.stringResource
1716

@@ -43,7 +42,7 @@ fun <T> UiStateHandler(
4342
onButtonClick = { shouldDismissErrorDialog.value = true },
4443
modifier = Modifier,
4544
title = stringResource(Res.string.error_occurred),
46-
description = errorDetails.message ?: stringResource(Res.string.error_info_unavailable)
45+
description = errorDetails.message ?: "Error information not available",
4746
)
4847
}
4948
}

0 commit comments

Comments
 (0)