Skip to content

Commit e82f4f6

Browse files
Fix storybook import
1 parent 167e3dc commit e82f4f6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/search/src/search.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
*/
44
import React from 'react';
55

6-
import Search from '.';
6+
import { Search } from './search';
77

88
export default { title: 'Search', component: Search };
99

1010
const 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

packages/search/src/search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)