frst-components 0.34.7 → 0.34.8
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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18722,7 +18722,7 @@ function FeedInteractionV2(props) {
|
|
|
18722
18722
|
React.useEffect(() => {
|
|
18723
18723
|
setStateTotalComments(props.qtdComments);
|
|
18724
18724
|
}, [props.qtdComments]);
|
|
18725
|
-
const qtdLikesText = props?.qtdLikes !== "1" ?
|
|
18725
|
+
const qtdLikesText = props?.qtdLikes !== "1" ? `${props.qtdLikes} pessoas curtiram esse desafio` : '1 pessoa curtiu esse desafio';
|
|
18726
18726
|
return (jsxRuntime.jsx(styled.ThemeProvider, { theme: FRSTTheme, children: jsxRuntime.jsxs(Container$7, { style: { ...props.style }, id: props.id, children: [jsxRuntime.jsxs(TopBar, { children: [jsxRuntime.jsxs(LeftAction, { onClick: () => props.handleLikeClick?.(), children: [jsxRuntime.jsx(ThumbsUpIcon2, {}), jsxRuntime.jsxs("span", { style: { marginTop: '2px' }, children: [" ", props.isLiked ? props.textDeslike : props.textLikes] })] }), jsxRuntime.jsxs(RightInfo, { children: [stateTotalComments && (jsxRuntime.jsx("span", { children: stateTotalComments })), props.textTotalView && (jsxRuntime.jsx("span", { style: { cursor: 'pointer' }, onClick: () => props.handleClickTextTotalViews?.(), children: props.textTotalView }))] })] }), jsxRuntime.jsx(Divider, {}), props.qtdLikes && (jsxRuntime.jsxs(BottomInfo, { onClick: () => props.handleShowLikes?.(), children: [jsxRuntime.jsx(ThumbsUpCovered2, {}), jsxRuntime.jsx("span", { children: qtdLikesText })] })), openComments && props.isCommentV2 && (jsxRuntime.jsx("div", { children: props.childrenCommentV2 }))] }) }));
|
|
18727
18727
|
}
|
|
18728
18728
|
|