@solarpunkltd/comment-system-ui
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -8,4 +8,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
const SwarmComment = ({ user, data, timestamp }) => { | ||
return (_jsxs("div", { className: "swarm-comment", children: [_jsx("div", { className: "swarm-comment__left-side", children: _jsx(AvatarMonogram, { letters: createMonogram(user) }) }), _jsxs("div", { className: "swarm-comment__right-side", children: [_jsxs("div", { className: "swarm-comment__right-side__name-and-time", children: [_jsx("p", { className: "swarm-comment__right-side__name-and-time__username", children: user }), _jsx("p", { className: "swarm-comment__right-side__name-and-time__time", children: formatTime(timestamp) })] }), _jsx("p", { className: "swarm-comment__right-side__text", children: data }), _jsx("div", { className: "swarm-comment__right-side__swarm-comment-controls", onClick: () => null, children: " " })] })] })); | ||
return (_jsxs("div", { className: "swarm-comment", children: [_jsx("div", { className: "swarm-comment__left-side", children: _jsx(AvatarMonogram, { letters: createMonogram(user) }) }), _jsxs("div", { className: "swarm-comment__right-side", children: [_jsxs("div", { className: "swarm-comment__right-side__name-and-time", children: [_jsx("p", { className: "swarm-comment__right-side__name-and-time__username", children: user }), _jsx("p", { className: "swarm-comment__right-side__name-and-time__time", children: formatTime(timestamp) })] }), _jsx("p", { className: "swarm-comment__right-side__text", children: data })] })] })); | ||
}; | ||
export default SwarmComment; |
@@ -52,3 +52,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
if (onRead) { | ||
onRead(newStartIx, newEndIx); | ||
onRead(tmpComments, newEndIx); | ||
} | ||
@@ -55,0 +55,0 @@ console.log("currentStartIx: ", currentStartIx); |
{ | ||
"name": "@solarpunkltd/comment-system-ui", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
18397