powr-sdk-web 3.4.1 → 3.4.3
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.
|
@@ -288,11 +288,23 @@ var CreatePost = function CreatePost(_ref) {
|
|
|
288
288
|
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
289
289
|
className: "text-xs text-gray-500 mt-1"
|
|
290
290
|
}, "Supported: Images, PDF, DOC, DOCX, TXT")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
291
|
-
className: "flex justify-end"
|
|
291
|
+
className: "flex justify-end mt-4",
|
|
292
|
+
style: {
|
|
293
|
+
position: 'relative',
|
|
294
|
+
zIndex: 10
|
|
295
|
+
}
|
|
292
296
|
}, /*#__PURE__*/_react["default"].createElement("button", {
|
|
293
297
|
type: "submit",
|
|
294
|
-
disabled: isSubmitting
|
|
295
|
-
className: "px-
|
|
298
|
+
disabled: isSubmitting,
|
|
299
|
+
className: "px-8 py-3 bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50 disabled:cursor-not-allowed text-lg font-semibold border-2 border-green-600 shadow-lg",
|
|
300
|
+
style: {
|
|
301
|
+
minWidth: '120px',
|
|
302
|
+
minHeight: '48px',
|
|
303
|
+
position: 'relative',
|
|
304
|
+
zIndex: 5,
|
|
305
|
+
opacity: 1,
|
|
306
|
+
visibility: 'visible'
|
|
307
|
+
}
|
|
296
308
|
}, isSubmitting ? 'Posting...' : 'Post'))));
|
|
297
309
|
};
|
|
298
310
|
var _default = exports["default"] = CreatePost;
|
|
@@ -167,9 +167,9 @@ var FeedPost = function FeedPost(_ref) {
|
|
|
167
167
|
className: "flex items-center space-x-3"
|
|
168
168
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
169
169
|
className: "w-10 h-10 bg-blue-500 rounded-full flex items-center justify-center text-white font-semibold"
|
|
170
|
-
}, ((_post$author = post.author) === null || _post$author === void 0 || (_post$author = _post$author.
|
|
170
|
+
}, ((_post$author = post.author) === null || _post$author === void 0 || (_post$author = _post$author.fullName) === null || _post$author === void 0 ? void 0 : _post$author.charAt(0)) || 'U'), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
171
171
|
className: "font-semibold text-gray-900"
|
|
172
|
-
}, ((_post$author2 = post.author) === null || _post$author2 === void 0 ? void 0 : _post$author2.
|
|
172
|
+
}, ((_post$author2 = post.author) === null || _post$author2 === void 0 ? void 0 : _post$author2.fullName) || 'Unknown User'), /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
173
|
className: "text-sm text-gray-500"
|
|
174
174
|
}, formatDate(post.createdAt), !post.isPublic && /*#__PURE__*/_react["default"].createElement("span", {
|
|
175
175
|
className: "ml-2 text-blue-500"
|