Skip to content

Commit

Permalink
fix(ui): resolve type error in search panel (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfung authored Oct 24, 2024
1 parent 90fafc6 commit 41ca242
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,17 @@ export class SearchPanel implements SearchPanelView {
>
<Toggle
pressed={searchQuery.caseSensitive}
onPressedChange={v => this.options.setCaseSensitive(v)}
onPressedChange={(v: boolean) =>
this.options.setCaseSensitive(v)
}
size="sm"
className="h-8 data-[state=on]:bg-primary/80 data-[state=on]:text-primary-foreground"
>
<IconLetterCaseCapitalize strokeWidth={2} />
</Toggle>
<Toggle
pressed={searchQuery.regexp}
onPressedChange={v => this.options.setRegexp(v)}
onPressedChange={(v: boolean) => this.options.setRegexp(v)}
size="sm"
className="h-8 data-[state=on]:bg-primary/80 data-[state=on]:text-primary-foreground"
>
Expand Down

0 comments on commit 41ca242

Please sign in to comment.