11import * as React from 'react' ;
22import { css } from '@patternfly/react-styles' ;
33import styles from '@patternfly/react-styles/css/components/AppLauncher/app-launcher' ;
4- import formStyles from '@patternfly/react-styles/css/components/FormControl/form-control' ;
54import ThIcon from '@patternfly/react-icons/dist/esm/icons/th-icon' ;
65import { DropdownDirection , DropdownPosition , DropdownToggle , DropdownContext } from '../Dropdown' ;
76import { DropdownWithContext } from '../Dropdown/DropdownWithContext' ;
@@ -10,6 +9,7 @@ import { ApplicationLauncherSeparator } from './ApplicationLauncherSeparator';
109import { ApplicationLauncherItem } from './ApplicationLauncherItem' ;
1110import { ApplicationLauncherContext } from './ApplicationLauncherContext' ;
1211import { createRenderableFavorites , extendItemsWithFavorite } from '../../helpers/favorites' ;
12+ import { SearchInput } from '../SearchInput' ;
1313
1414export interface ApplicationLauncherProps extends React . HTMLProps < HTMLDivElement > {
1515 /** Additional element css classes */
@@ -93,13 +93,12 @@ export class ApplicationLauncher extends React.Component<ApplicationLauncherProp
9393 < div key = "search" className = { css ( styles . appLauncherMenuSearch ) } >
9494 < ApplicationLauncherItem
9595 customChild = {
96- < input
96+ < SearchInput
9797 type = "search"
98- className = { css ( formStyles . formControl ) }
9998 placeholder = { searchPlaceholderText }
100- onChange = { e => onSearch ( e . target . value ) }
99+ onChange = { value => onSearch ( value ) }
101100 { ...searchProps }
102- > </ input >
101+ / >
103102 }
104103 > </ ApplicationLauncherItem >
105104 </ div >
0 commit comments