Skip to content

Commit

Permalink
chore: tip-tap editor update in workspace user activity (#1877)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurusainath authored Aug 16, 2023
1 parent 1ded8f4 commit f44d142
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions apps/app/pages/[workspaceSlug]/me/profile/activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { WorkspaceAuthorizationLayout } from "layouts/auth-layout";
import SettingsNavbar from "layouts/settings-navbar";
// components
import { ActivityIcon, ActivityMessage } from "components/core";
import Tiptap, { ITiptapRichTextEditor } from "components/tiptap";
// icons
import { ArrowTopRightOnSquareIcon, ChatBubbleLeftEllipsisIcon } from "@heroicons/react/24/outline";
// ui
Expand Down Expand Up @@ -104,14 +105,16 @@ const ProfileActivity = () => {
</p>
</div>
<div className="issue-comments-section p-0">
{/* // TODO: Check these styles */}
<div
dangerouslySetInnerHTML={{
__html:
activityItem?.new_value !== ""
? activityItem.new_value
: activityItem.old_value,
}}
<Tiptap
value={
activityItem?.new_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>
Expand Down

0 comments on commit f44d142

Please sign in to comment.