diff --git a/web/chat/message-like-tooltip-button.css b/web/chat/message-like-tooltip-button.css new file mode 100644 --- /dev/null +++ b/web/chat/message-like-tooltip-button.css @@ -0,0 +1,5 @@ +span.containerViewerLiked { + padding: 4px; + border-radius: 4px; + background-color: var(--shades-black-80); +} diff --git a/web/chat/message-like-tooltip-button.react.js b/web/chat/message-like-tooltip-button.react.js new file mode 100644 --- /dev/null +++ b/web/chat/message-like-tooltip-button.react.js @@ -0,0 +1,22 @@ +// @flow + +import classNames from 'classnames'; +import * as React from 'react'; + +import css from './message-like-tooltip-button.css'; + +type ReactTooltipButtonProps = { + +viewerReacted: boolean, +}; + +function MessageLikeTooltipButton(props: ReactTooltipButtonProps): React.Node { + const { viewerReacted } = props; + + const containerClassNames = classNames({ + [css.containerViewerLiked]: viewerReacted, + }); + + return 👍; +} + +export default MessageLikeTooltipButton; diff --git a/web/chat/message-tooltip.css b/web/chat/message-tooltip.css --- a/web/chat/message-tooltip.css +++ b/web/chat/message-tooltip.css @@ -25,7 +25,8 @@ color: var(--color-disabled); } -div.messageActionButtons svg:hover { +div.messageActionButtons svg:hover, +span:hover { cursor: pointer; color: var(--fg); }