@@ -38,7 +38,7 @@ const BookmarkButtons: FC<Props> = (props: Props) => {
}
};
- const tooltipMessage = useCallback(() => {
+ const getTooltipMessage = useCallback(() => {
if (isGuestUser) {
return 'Not available for guest';
@@ -62,7 +62,7 @@ const BookmarkButtons: FC<Props> = (props: Props) => {
</button>
<UncontrolledTooltip placement="top" target="bookmark-button" fade={false}>
- {t(tooltipMessage())}
+ {t(getTooltipMessage())}
</UncontrolledTooltip>
{ !hideTotalNumber && (
@@ -34,7 +34,7 @@ const LikeButtons: FC<LikeButtonsProps> = (props: LikeButtonsProps) => {
hideTotalNumber, isGuestUser, isLiked, sumOfLikers, onLikeClicked,
} = props;
@@ -58,7 +58,7 @@ const LikeButtons: FC<LikeButtonsProps> = (props: LikeButtonsProps) => {
<UncontrolledTooltip placement="top" target="like-button" fade={false}>
@@ -21,7 +21,7 @@ const SubscribeButton: FC<Props> = (props: Props) => {
const buttonClass = `${isSubscribing ? 'active' : ''} ${isGuestUser ? 'disabled' : ''}`;
const iconClass = isSubscribing === false ? 'fa fa-eye-slash' : 'fa fa-eye';
@@ -44,7 +44,7 @@ const SubscribeButton: FC<Props> = (props: Props) => {
<UncontrolledTooltip placement="top" target="subscribe-button" fade={false}>
</>
);