File tree Expand file tree Collapse file tree
packages/webapp/pages/[userId] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import classNames from 'classnames';
2828import { ProfileCompletion } from '@dailydotdev/shared/src/features/profile/components/ProfileWidgets/ProfileCompletion' ;
2929import { Share } from '@dailydotdev/shared/src/features/profile/components/ProfileWidgets/Share' ;
3030import { useRouter } from 'next/router' ;
31+ import { useProfileCompletionIndicator } from '@dailydotdev/shared/src/hooks/profile/useProfileCompletionIndicator' ;
3132import {
3233 getLayout as getProfileLayout ,
3334 getProfileSeoDefaults ,
@@ -51,6 +52,8 @@ const ProfilePage = ({
5152 ( ) => checkHasCompleted ( ActionType . ClosedProfileBanner ) ,
5253 [ checkHasCompleted ] ,
5354 ) ;
55+ const { showIndicator : showProfileCompletion } =
56+ useProfileCompletionIndicator ( ) ;
5457
5558 const { user, isUserSame : isUserSameBase } = useProfile ( initialUser ) ;
5659
@@ -85,7 +88,9 @@ const ProfilePage = ({
8588 ! hideSticky ? 'fixed tablet:pl-20' : 'relative' ,
8689 ) }
8790 />
88- { isSameUser && < ProfileCompletion className = "laptop:hidden" /> }
91+ { isSameUser && showProfileCompletion && (
92+ < ProfileCompletion className = "laptop:hidden" />
93+ ) }
8994 < div ref = { stickyRef } />
9095 < ProfileHeader
9196 user = { user }
You can’t perform that action at this time.
0 commit comments