File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 */
44import React from 'react' ;
55
6- import Search from '.' ;
6+ import { Search } from './search ' ;
77
88export default { title : 'Search' , component : Search } ;
99
1010const BoxedSearch = ( props : any ) => (
1111 < div style = { { position : 'relative' , width : '270px' , height : '50px' } } >
1212 < Search
13+ __ = { ( str : string ) => str }
1314 placeholder = "Search..."
1415 fitsContainer
1516 onSearch = { ( search ) => console . log ( 'Searched: ' , search ) } // eslint-disable-line no-console
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ type State = {
8686 hasFocus : boolean ;
8787} ;
8888
89- class Search extends React . Component < Props , State > {
89+ export class Search extends React . Component < Props , State > {
9090 static defaultProps = {
9191 autoFocus : false ,
9292 compact : false ,
You can’t perform that action at this time.
0 commit comments