File tree Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Expand file tree Collapse file tree 2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,6 @@ const connectionCountStyles = css({
8383 marginLeft : spacing [ 100 ] ,
8484} ) ;
8585
86- const searchFormStyles = css ( {
87- flexGrow : 1 ,
88- } ) ;
89-
9086const noDeploymentStyles = css ( {
9187 paddingLeft : spacing [ 400 ] ,
9288 paddingRight : spacing [ 400 ] ,
@@ -507,7 +503,6 @@ const ConnectionsNavigation: React.FC<ConnectionsNavigationProps> = ({
507503 { connections . length > 0 && (
508504 < >
509505 < NavigationItemsFilter
510- className = { searchFormStyles }
511506 placeholder = "Search connections"
512507 filter = { filter }
513508 onFilterChange = { onFilterChange }
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ const filterContainerStyles = css({
1212 paddingRight : spacing [ 400 ] ,
1313} ) ;
1414
15+ const textInputStyles = css ( {
16+ flexGrow : 1 ,
17+ } ) ;
18+
1519function createRegExp ( input : string ) {
1620 try {
1721 return input ? new RegExp ( input , 'i' ) : null ;
@@ -26,7 +30,6 @@ export default function NavigationItemsFilter({
2630 title = 'Search' ,
2731 filter,
2832 onFilterChange,
29- className,
3033} : {
3134 placeholder ?: string ;
3235 ariaLabel ?: string ;
@@ -35,7 +38,6 @@ export default function NavigationItemsFilter({
3538 onFilterChange (
3639 updater : ( filter : ConnectionsFilter ) => ConnectionsFilter
3740 ) : void ;
38- className ?: string ;
3941} ) : React . ReactElement {
4042 const onChange = useCallback < React . ChangeEventHandler < HTMLInputElement > > (
4143 ( event ) => {
@@ -55,23 +57,22 @@ export default function NavigationItemsFilter({
5557 } , [ ] ) ;
5658
5759 return (
58- < div className = { filterContainerStyles } >
59- < form noValidate className = { className } onSubmit = { onSubmit } >
60- < TextInput
61- data-testid = "sidebar-filter-input"
62- placeholder = { placeholder }
63- type = "search"
64- aria-label = { ariaLabel }
65- title = { title }
66- onChange = { onChange }
67- />
68- </ form >
60+ < form noValidate className = { filterContainerStyles } onSubmit = { onSubmit } >
61+ < TextInput
62+ data-testid = "sidebar-filter-input"
63+ placeholder = { placeholder }
64+ type = "search"
65+ aria-label = { ariaLabel }
66+ title = { title }
67+ onChange = { onChange }
68+ className = { textInputStyles }
69+ />
6970 < ConnectionsFilterPopover
7071 open = { isPopoverOpen }
7172 setOpen = { setPopoverOpen }
7273 filter = { filter }
7374 onFilterChange = { onFilterChange }
7475 />
75- </ div >
76+ </ form >
7677 ) ;
7778}
You can’t perform that action at this time.
0 commit comments