1
1
import * as React from 'react' ;
2
2
import { css } from '@patternfly/react-styles' ;
3
3
import styles from '@patternfly/react-styles/css/components/AppLauncher/app-launcher' ;
4
- import formStyles from '@patternfly/react-styles/css/components/FormControl/form-control' ;
5
4
import ThIcon from '@patternfly/react-icons/dist/esm/icons/th-icon' ;
6
5
import { DropdownDirection , DropdownPosition , DropdownToggle , DropdownContext } from '../Dropdown' ;
7
6
import { DropdownWithContext } from '../Dropdown/DropdownWithContext' ;
@@ -10,6 +9,7 @@ import { ApplicationLauncherSeparator } from './ApplicationLauncherSeparator';
10
9
import { ApplicationLauncherItem } from './ApplicationLauncherItem' ;
11
10
import { ApplicationLauncherContext } from './ApplicationLauncherContext' ;
12
11
import { createRenderableFavorites , extendItemsWithFavorite } from '../../helpers/favorites' ;
12
+ import { SearchInput } from '../SearchInput' ;
13
13
14
14
export interface ApplicationLauncherProps extends React . HTMLProps < HTMLDivElement > {
15
15
/** Additional element css classes */
@@ -93,13 +93,12 @@ export class ApplicationLauncher extends React.Component<ApplicationLauncherProp
93
93
< div key = "search" className = { css ( styles . appLauncherMenuSearch ) } >
94
94
< ApplicationLauncherItem
95
95
customChild = {
96
- < input
96
+ < SearchInput
97
97
type = "search"
98
- className = { css ( formStyles . formControl ) }
99
98
placeholder = { searchPlaceholderText }
100
- onChange = { e => onSearch ( e . target . value ) }
99
+ onChange = { value => onSearch ( value ) }
101
100
{ ...searchProps }
102
- > </ input >
101
+ / >
103
102
}
104
103
> </ ApplicationLauncherItem >
105
104
</ div >
0 commit comments