Skip to content

Commit 5247fed

Browse files
[WEB-5271] chore: your work empty state updated #8029
1 parent 0560849 commit 5247fed

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

apps/web/core/components/issues/issue-layouts/empty-states/profile-view.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,22 @@ import { observer } from "mobx-react";
22
import { useParams } from "next/navigation";
33
// components
44
import { useTranslation } from "@plane/i18n";
5-
import { DetailedEmptyState } from "@/components/empty-state/detailed-empty-state-root";
6-
// constants
7-
import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
5+
import { EmptyStateDetailed } from "@plane/propel/empty-state";
86

97
// TODO: If projectViewId changes, everything breaks. Figure out a better way to handle this.
108
export const ProfileViewEmptyState: React.FC = observer(() => {
119
// plane hooks
1210
const { t } = useTranslation();
1311
// store hooks
1412
const { profileViewId } = useParams();
15-
// derived values
16-
const resolvedPath = useResolvedAssetPath({
17-
basePath: "/empty-state/profile/",
18-
additionalPath: profileViewId?.toString(),
19-
});
2013

2114
if (!profileViewId) return null;
2215

2316
return (
24-
<DetailedEmptyState
17+
<EmptyStateDetailed
18+
assetKey="work-item"
2519
title={t(`profile.empty_state.${profileViewId.toString()}.title`)}
2620
description={t(`profile.empty_state.${profileViewId.toString()}.description`)}
27-
assetPath={resolvedPath}
2821
/>
2922
);
3023
});

0 commit comments

Comments
 (0)