forked from github/plane
chore: tip-tap editor update in workspace user activity (#1877)
This commit is contained in:
parent
1ded8f486f
commit
f44d142f2c
@ -10,6 +10,7 @@ import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
|
|||||||
import SettingsNavbar from "layouts/settings-navbar";
|
import SettingsNavbar from "layouts/settings-navbar";
|
||||||
// components
|
// components
|
||||||
import { ActivityIcon, ActivityMessage } from "components/core";
|
import { ActivityIcon, ActivityMessage } from "components/core";
|
||||||
|
import Tiptap, { ITiptapRichTextEditor } from "components/tiptap";
|
||||||
// icons
|
// icons
|
||||||
import { ArrowTopRightOnSquareIcon, ChatBubbleLeftEllipsisIcon } from "@heroicons/react/24/outline";
|
import { ArrowTopRightOnSquareIcon, ChatBubbleLeftEllipsisIcon } from "@heroicons/react/24/outline";
|
||||||
// ui
|
// ui
|
||||||
@ -104,14 +105,16 @@ const ProfileActivity = () => {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="issue-comments-section p-0">
|
<div className="issue-comments-section p-0">
|
||||||
{/* // TODO: Check these styles */}
|
<Tiptap
|
||||||
<div
|
value={
|
||||||
dangerouslySetInnerHTML={{
|
activityItem?.new_value !== ""
|
||||||
__html:
|
? activityItem.new_value
|
||||||
activityItem?.new_value !== ""
|
: activityItem.old_value
|
||||||
? activityItem.new_value
|
}
|
||||||
: activityItem.old_value,
|
customClassName="text-xs border border-custom-border-200 bg-custom-background-100"
|
||||||
}}
|
noBorder
|
||||||
|
borderOnFocus={false}
|
||||||
|
editable={false}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user