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";
@ -250,7 +251,18 @@ export const Feeds: React.FC<any> = ({ activities }) => {
Commented {timeAgo(activity.created_at)}
</p>
</div>
{/* <div className="issue-comments-section p-0"> */}
<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 !== "" */}
@ -261,7 +273,7 @@ export const Feeds: React.FC<any> = ({ activities }) => {
{/* noBorder */}
{/* customClassName="text-xs border border-custom-border-200 bg-custom-background-100" */}
{/* /> */}
{/* </div> */}
</div>
</div>
</div>
</div>