added tiptap integration with user activity feeds

This commit is contained in:
Palanikannan1437 2023-08-10 01:20:40 +05:30
parent 0b6d510cc7
commit b1dc5f3da1

View File

@ -15,6 +15,7 @@ import { Icon } from "components/ui";
// helpers
import { renderShortDateWithYearFormat, timeAgo } from "helpers/date-time.helper";
import { addSpaceIfCamelCase } from "helpers/string.helper";
import Tiptap from "components/tiptap";
// types
// import RemirrorRichTextEditor from "components/rich-text-editor";
@ -200,7 +201,7 @@ export const Feeds: React.FC<any> = ({ activities }) => {
} else if (activity.field === "estimate_point") {
value = activity.new_value
? activity.new_value +
` Point${parseInt(activity.new_value ?? "", 10) > 1 ? "s" : ""}`
` Point${parseInt(activity.new_value ?? "", 10) > 1 ? "s" : ""}`
: "None";
}
@ -250,18 +251,29 @@ export const Feeds: React.FC<any> = ({ activities }) => {
Commented {timeAgo(activity.created_at)}
</p>
</div>
{/* <div className="issue-comments-section p-0"> */}
{/* <RemirrorRichTextEditor */}
{/* value={ */}
{/* activity.new_value && activity.new_value !== "" */}
{/* ? activity.new_value */}
{/* : activity.old_value */}
{/* } */}
{/* editable={false} */}
{/* noBorder */}
{/* customClassName="text-xs border border-custom-border-200 bg-custom-background-100" */}
{/* /> */}
{/* </div> */}
<div className="issue-comments-section p-0">
<Tiptap
value={
activity.new_value && activity.new_value !== ""
? activity.new_value
: activity.old_value
}
editable={false}
noBorder
customClassName="text-xs border border-custom-border-200 bg-custom-background-100"
/>
{/**/}
{/* <RemirrorRichTextEditor */}
{/* value={ */}
{/* activity.new_value && activity.new_value !== "" */}
{/* ? activity.new_value */}
{/* : activity.old_value */}
{/* } */}
{/* editable={false} */}
{/* noBorder */}
{/* customClassName="text-xs border border-custom-border-200 bg-custom-background-100" */}
{/* /> */}
</div>
</div>
</div>
</div>