fix: comment images in profile activity page (#6123)
This commit is contained in:
parent
5aeedd1e5a
commit
5926c9e8e9
1 changed files with 1 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useParams } from "next/navigation";
|
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
// icons
|
// icons
|
||||||
import { History, MessageSquare } from "lucide-react";
|
import { History, MessageSquare } from "lucide-react";
|
||||||
|
|
@ -31,8 +30,6 @@ type Props = {
|
||||||
|
|
||||||
export const ProfileActivityListPage: React.FC<Props> = observer((props) => {
|
export const ProfileActivityListPage: React.FC<Props> = observer((props) => {
|
||||||
const { cursor, perPage, updateResultsCount, updateTotalPages, updateEmptyState } = props;
|
const { cursor, perPage, updateResultsCount, updateTotalPages, updateEmptyState } = props;
|
||||||
// params
|
|
||||||
const { workspaceSlug } = useParams();
|
|
||||||
// store hooks
|
// store hooks
|
||||||
const { data: currentUser } = useUser();
|
const { data: currentUser } = useUser();
|
||||||
|
|
||||||
|
|
@ -106,7 +103,7 @@ export const ProfileActivityListPage: React.FC<Props> = observer((props) => {
|
||||||
activityItem?.new_value !== "" ? activityItem.new_value : activityItem.old_value
|
activityItem?.new_value !== "" ? activityItem.new_value : activityItem.old_value
|
||||||
}
|
}
|
||||||
containerClassName="text-xs bg-custom-background-100"
|
containerClassName="text-xs bg-custom-background-100"
|
||||||
workspaceSlug={workspaceSlug?.toString() ?? ""}
|
workspaceSlug={activityItem?.workspace_detail?.slug.toString() ?? ""}
|
||||||
projectId={activityItem.project ?? ""}
|
projectId={activityItem.project ?? ""}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue