File tree Expand file tree Collapse file tree
apps/web/core/components/issues/issue-layouts/empty-states Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,29 +2,22 @@ import { observer } from "mobx-react";
22import { useParams } from "next/navigation" ;
33// components
44import { 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.
108export 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} ) ;
You can’t perform that action at this time.
0 commit comments