Skip to content

Commit

Permalink
Update behavior display names
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgio committed Jun 2, 2020
1 parent e157b3a commit 95c9922
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/behaviors/async.js
Expand Up @@ -183,7 +183,7 @@ export function withAsync(Component: ComponentType<*>) {
(props, ref) => <Component {...useAsync(props)} ref={ref} />
);

AsyncTypeahead.displayName = `asyncContainer(${getDisplayName(Component)})`;
AsyncTypeahead.displayName = `withAsync(${getDisplayName(Component)})`;
// $FlowFixMe
AsyncTypeahead.propTypes = propTypes;
// $FlowFixMe
Expand Down
2 changes: 1 addition & 1 deletion src/behaviors/item.js
Expand Up @@ -81,7 +81,7 @@ export const useItem = ({ label, option, position, ...props }: Props) => {
};

export const withItem = (Component: ComponentType<*>) => {
const displayName = `menuItemContainer(${getDisplayName(Component)})`;
const displayName = `withItem(${getDisplayName(Component)})`;

const WrappedMenuItem = (props: Props) => <Component {...useItem(props)} />;

Expand Down
2 changes: 1 addition & 1 deletion src/behaviors/token.js
Expand Up @@ -96,7 +96,7 @@ export const useToken = ({
};

export const withToken = (Component: ComponentType<*>) => {
const displayName = `tokenContainer(${getDisplayName(Component)})`;
const displayName = `withToken(${getDisplayName(Component)})`;

const WrappedToken = (props: Props) => <Component {...useToken(props)} />;

Expand Down

0 comments on commit 95c9922

Please sign in to comment.