Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Nov 12, 2019
1 parent 6245126 commit df8bcff
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions packages/component/src/Activity/SendStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const connectSendStatus = (...selectors) =>
...selectors
);

const SendStatus = ({ activity }) => {
const SendStatus = ({ activity, focusSendBox }) => {
const [{ sendStatus: sendStatusStyleSet }] = useStyleSet();
const postActivity = usePostActivity();

Expand Down Expand Up @@ -91,9 +91,10 @@ SendStatus.propTypes = {
channelData: PropTypes.shape({
state: PropTypes.string
})
}).isRequired
}).isRequired,
focusSendBox: PropTypes.func.isRequired
};

export default connectSendStatus()(SendStatus);
export default connectSendStatus(({ focusSendBox }) => ({ focusSendBox }))(SendStatus);

export { connectSendStatus };
2 changes: 1 addition & 1 deletion packages/component/src/SendBox/SuggestedAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const SuggestedAction = ({ buttonText, clearSuggestedActions, disabled, displayT

// TODO: Use the following line when setSuggestedActions hook is merged
// type === 'openUrl' && setSuggestedActions([]);
}, [displayText, performCardAction, setSuggestedActions, text, type, value]);
}, [displayText, performCardAction, text, type, value]);

return (
<div className={classNames(suggestedActionStyleSet + '', SUGGESTED_ACTION_CSS + '')}>
Expand Down

0 comments on commit df8bcff

Please sign in to comment.