MessageView: Show menu w/ 'reply to message' on triple-dot click

This commit is contained in:
Scott Nonnenberg 2018-04-18 16:10:14 -07:00
parent f4d9ab8ba0
commit 12257e1560
No known key found for this signature in database
GPG key ID: 5F82280C35134661
7 changed files with 80 additions and 18 deletions

View file

@ -161,10 +161,17 @@ export class Quote extends React.Component<Props, {}> {
return null;
}
// We don't want the overall click handler for the quote to fire, so we stop
// propagation before handing control to the caller's callback.
const onClick = (e: React.MouseEvent<{}>): void => {
e.stopPropagation();
onClose();
};
// We need the container to give us the flexibility to implement the iOS design.
return (
<div className="close-container">
<div className="close-button" onClick={onClose}></div>
<div className="close-button" onClick={onClick}></div>
</div>
);
}