Skip to content

Commit b5fceba

Browse files
committed
🐛 Allows the search icon toggle to work
1 parent 928ae2c commit b5fceba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/reactotron-app/App/Stores/UiStore.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,22 @@ class UI {
121121
this.isTimelineSearchVisible = false
122122
}
123123

124+
@action
124125
showTimelineSearch = () => {
125126
this.isTimelineSearchVisible = false // hack to ensure the reaction on the timeline header works (sheesh.)
126127
this.isTimelineSearchVisible = true
127128
this.switchTab('timeline')
128129
}
129130

131+
@action
132+
toggleTimelineSearch = () => {
133+
if (this.isTimelineSearchVisible) {
134+
this.hideTimelineSearch()
135+
} else {
136+
this.showTimelineSearch()
137+
}
138+
}
139+
130140
@action
131141
switchTab = newTab => {
132142
this.tab = newTab

0 commit comments

Comments
 (0)