File tree 1 file changed +10
-19
lines changed
web/src/components/CasesDisplay
1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const Container = styled.div`
18
18
( ) =>
19
19
css `
20
20
flex-direction: row;
21
- gap: calc(4px + (24 - 4) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
21
+ gap: calc(4px + (22 - 4) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
22
22
`
23
23
) }
24
24
` ;
@@ -43,15 +43,6 @@ const StyledSearchbar = styled(Searchbar)`
43
43
}
44
44
` ;
45
45
46
- const StyledDropdownCascader = styled ( DropdownCascader ) `
47
- [class*="dropdown-container"] {
48
- width: 240px;
49
- }
50
- [class*="cascader"] {
51
- overflow: auto;
52
- }
53
- ` ;
54
-
55
46
const Search : React . FC = ( ) => {
56
47
const { page, order, filter } = useParams ( ) ;
57
48
const location = useRootPath ( ) ;
@@ -80,16 +71,8 @@ const Search: React.FC = () => {
80
71
81
72
return (
82
73
< Container >
83
- < SearchBarContainer >
84
- < StyledSearchbar
85
- type = "text"
86
- placeholder = "Search By ID"
87
- value = { search }
88
- onChange = { ( e ) => setSearch ( e . target . value ) }
89
- />
90
- </ SearchBarContainer >
91
74
{ items ? (
92
- < StyledDropdownCascader
75
+ < DropdownCascader
93
76
items = { items }
94
77
placeholder = { "Select Court" }
95
78
onSelect = { ( value ) => {
@@ -101,6 +84,14 @@ const Search: React.FC = () => {
101
84
) : (
102
85
< Skeleton width = { 240 } height = { 42 } />
103
86
) }
87
+ < SearchBarContainer >
88
+ < StyledSearchbar
89
+ type = "text"
90
+ placeholder = "Search By ID"
91
+ value = { search }
92
+ onChange = { ( e ) => setSearch ( e . target . value ) }
93
+ />
94
+ </ SearchBarContainer >
104
95
</ Container >
105
96
) ;
106
97
} ;
You can’t perform that action at this time.
0 commit comments