Skip to content

Commit

Permalink
fix: use string resource for search bar placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhasDissa committed Apr 17, 2024
1 parent f432fb5 commit 6d0ce07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
import androidx.compose.ui.window.DialogProperties
import com.bnyro.clock.R
import com.bnyro.clock.domain.model.TimeZone
import com.bnyro.clock.presentation.screens.clock.model.ClockModel
import com.bnyro.clock.util.TimeHelper
Expand Down Expand Up @@ -84,7 +85,7 @@ fun TimeZoneSelectDialog(
.contains(lowerQuery)
}
},
placeholder = { Text("Search Country/TimeZone") },
placeholder = { Text(stringResource(R.string.search_country_timezone)) },
colors = TextFieldDefaults.colors(
focusedContainerColor = MaterialTheme.colorScheme.secondaryContainer,
unfocusedContainerColor = MaterialTheme.colorScheme.secondaryContainer,
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,5 @@
<string name="add_preset_timer">Add preset timer</string>
<string name="start">Start</string>
<string name="delete_world_clock">Delete World Clock</string>
<string name="search_country_timezone">Search Country/TimeZone</string>
</resources>

0 comments on commit 6d0ce07

Please sign in to comment.