[WEB-5271] chore: your work empty state updated #8029
This commit is contained in:
parent
0560849f88
commit
5247fedd23
1 changed files with 3 additions and 10 deletions
|
|
@ -2,9 +2,7 @@ import { observer } from "mobx-react";
|
|||
import { useParams } from "next/navigation";
|
||||
// components
|
||||
import { useTranslation } from "@plane/i18n";
|
||||
import { DetailedEmptyState } from "@/components/empty-state/detailed-empty-state-root";
|
||||
// constants
|
||||
import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path";
|
||||
import { EmptyStateDetailed } from "@plane/propel/empty-state";
|
||||
|
||||
// TODO: If projectViewId changes, everything breaks. Figure out a better way to handle this.
|
||||
export const ProfileViewEmptyState: React.FC = observer(() => {
|
||||
|
|
@ -12,19 +10,14 @@ export const ProfileViewEmptyState: React.FC = observer(() => {
|
|||
const { t } = useTranslation();
|
||||
// store hooks
|
||||
const { profileViewId } = useParams();
|
||||
// derived values
|
||||
const resolvedPath = useResolvedAssetPath({
|
||||
basePath: "/empty-state/profile/",
|
||||
additionalPath: profileViewId?.toString(),
|
||||
});
|
||||
|
||||
if (!profileViewId) return null;
|
||||
|
||||
return (
|
||||
<DetailedEmptyState
|
||||
<EmptyStateDetailed
|
||||
assetKey="work-item"
|
||||
title={t(`profile.empty_state.${profileViewId.toString()}.title`)}
|
||||
description={t(`profile.empty_state.${profileViewId.toString()}.description`)}
|
||||
assetPath={resolvedPath}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue