File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
src/components/reports/insights Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change
1
+ import { InputIcon } from "primereact/inputicon" ;
1
2
import React from "react" ;
2
3
import { InputText } from "primereact/inputtext" ;
3
4
import { Dropdown } from "primereact/dropdown" ;
4
5
import { Slider } from "primereact/slider" ;
5
6
import { Button } from "primereact/button" ;
6
7
import { getInsightTypeOptions , getSeverityOptions , i10nWithFallback } from "./utils" ;
8
+ import { IconField } from "primereact/iconfield" ;
7
9
8
10
interface InsightFiltersProps {
9
11
searchTerm : string ;
@@ -35,15 +37,15 @@ const InsightFilters: React.FC<InsightFiltersProps> = ({
35
37
< div className = "mb-4 p-3 bg-gray-50 rounded-lg" >
36
38
< div className = "flex flex-col md:flex-row gap-3 mb-3" >
37
39
< div className = "flex-1" >
38
- < span className = "p-input-icon- left w-full ">
39
- < i className = "pi pi-search" />
40
- < InputText
40
+ < IconField iconPosition = " left">
41
+ < InputIcon className = "pi pi-search" />
42
+ < InputText
41
43
value = { searchTerm }
42
44
onChange = { ( e ) => setSearchTerm ( e . target . value ) }
43
45
placeholder = { i10nWithFallback ( 'search' ) }
44
46
className = "w-full"
45
47
/>
46
- </ span >
48
+ </ IconField >
47
49
</ div >
48
50
< div className = "flex flex-1 gap-2" >
49
51
< Dropdown
Original file line number Diff line number Diff line change
1
+ import { InputIcon } from "primereact/inputicon" ;
1
2
import React from "react" ;
2
3
import { InputText } from "primereact/inputtext" ;
3
4
import { Dropdown } from "primereact/dropdown" ;
4
5
import { Slider } from "primereact/slider" ;
5
6
import { Button } from "primereact/button" ;
6
7
import { getPatternTypeOptions , i10nWithFallback } from "./utils" ;
8
+ import { IconField } from "primereact/iconfield" ;
7
9
8
10
interface PatternFiltersProps {
9
11
searchTerm : string ;
@@ -31,15 +33,15 @@ const PatternFilters: React.FC<PatternFiltersProps> = ({
31
33
< div className = "mb-4 p-3 bg-gray-50 rounded-lg" >
32
34
< div className = "flex flex-col md:flex-row gap-3 mb-3" >
33
35
< div className = "flex-1" >
34
- < span className = "p-input-icon- left w-full ">
35
- < i className = "pi pi-search" />
36
+ < IconField iconPosition = " left">
37
+ < InputIcon className = "pi pi-search" />
36
38
< InputText
37
39
value = { searchTerm }
38
40
onChange = { ( e ) => setSearchTerm ( e . target . value ) }
39
41
placeholder = { i10nWithFallback ( 'search' ) }
40
42
className = "w-full"
41
43
/>
42
- </ span >
44
+ </ IconField >
43
45
</ div >
44
46
< div className = "flex-1" >
45
47
< Dropdown
You can’t perform that action at this time.
0 commit comments