Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Fix Search Transactions Clear Text Icon Visibility Issue (#3543)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsin363 authored Sep 18, 2024
1 parent b75a0b8 commit 04b9fd1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion screen/search/src/main/java/com/ivy/search/SearchScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ private fun SearchUi(
SearchInput(
searchQueryTextFieldValue = searchQueryTextFieldValue,
hint = stringResource(R.string.search_transactions),
showClearIcon = searchQueryTextFieldValue.text.isNotEmpty(),
onSetSearchQueryTextField = {
searchQueryTextFieldValue = it
onEvent(SearchEvent.Search(it.text))
Expand Down Expand Up @@ -129,7 +130,7 @@ private fun Preview(isDark: Boolean = false) {
IvyPreview(isDark) {
SearchUi(
uiState = SearchState(
searchQuery = "Transaction",
searchQuery = "",
transactions = persistentListOf(),
baseCurrency = "",
accounts = persistentListOf(),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 04b9fd1

Please sign in to comment.