@selfcommunity/react-ui 0.7.38-alpha.1 → 0.7.39-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,7 +138,7 @@ function VoteButton(inProps) {
138
138
  };
139
139
  }, [reactions]);
140
140
  // RENDER
141
- const button = (react_1.default.createElement(Root, Object.assign({ onClick: isMobile
141
+ const button = (react_1.default.createElement(Root, Object.assign({ onClick: isMobile && reactions.reactions
142
142
  ? handleMouseEnter
143
143
  : () => handleVoteAction(contributionReaction ? contributionReaction : reactions.default ? reactions.default : null), disabled: isLoading || Boolean(error), loading: isVoting, className: (0, classnames_1.default)(classes.root, className, {
144
144
  [classes.voted]: scUserContext.user && contributionVoted
@@ -136,7 +136,7 @@ export default function VoteButton(inProps) {
136
136
  };
137
137
  }, [reactions]);
138
138
  // RENDER
139
- const button = (React.createElement(Root, Object.assign({ onClick: isMobile
139
+ const button = (React.createElement(Root, Object.assign({ onClick: isMobile && reactions.reactions
140
140
  ? handleMouseEnter
141
141
  : () => handleVoteAction(contributionReaction ? contributionReaction : reactions.default ? reactions.default : null), disabled: isLoading || Boolean(error), loading: isVoting, className: classNames(classes.root, className, {
142
142
  [classes.voted]: scUserContext.user && contributionVoted