fix: replace hard-coded strings

This commit is contained in:
Harsh Shandilya
2023-06-27 17:29:06 +05:30
parent ee6895b2e8
commit b3be9bad26

View File

@@ -70,7 +70,7 @@ fun PasswordEntryScreen(
if (entry.password != null) { if (entry.password != null) {
PasswordField( PasswordField(
value = entry.password!!, value = entry.password!!,
label = "Password", label = stringResource(R.string.password),
initialVisibility = false, initialVisibility = false,
readOnly = readOnly, readOnly = readOnly,
modifier = Modifier.padding(bottom = 8.dp), modifier = Modifier.padding(bottom = 8.dp),
@@ -92,7 +92,7 @@ fun PasswordEntryScreen(
value = entry.username!!, value = entry.username!!,
onValueChange = {}, onValueChange = {},
readOnly = true, readOnly = true,
label = { Text("Username") }, label = { Text(stringResource(R.string.username)) },
trailingIcon = { CopyButton({ entry.username!! }) }, trailingIcon = { CopyButton({ entry.username!! }) },
modifier = Modifier.padding(bottom = 8.dp), modifier = Modifier.padding(bottom = 8.dp),
) )