diff --git a/pkg/interface/src/logic/lib/tutorialModal.ts b/pkg/interface/src/logic/lib/tutorialModal.ts index 8e93c7a53..25dfaaf28 100644 --- a/pkg/interface/src/logic/lib/tutorialModal.ts +++ b/pkg/interface/src/logic/lib/tutorialModal.ts @@ -156,7 +156,7 @@ export const progressDetails: Record = { alignX: 'right', arrow: 'South', offsetX: -300 + MODAL_WIDTH / 2, - offsetY: -60, + offsetY: -4, }, leap: { title: 'Leap', diff --git a/pkg/interface/src/views/apps/profile/components/Profile.tsx b/pkg/interface/src/views/apps/profile/components/Profile.tsx index ca120ecda..0f7b641d6 100644 --- a/pkg/interface/src/views/apps/profile/components/Profile.tsx +++ b/pkg/interface/src/views/apps/profile/components/Profile.tsx @@ -29,6 +29,10 @@ export function ProfileImages(props: any): ReactElement { const { contact, hideCover, ship } = { ...props }; const hexColor = contact?.color ? `#${uxToHex(contact.color)}` : '#000000'; + const anchorRef = useRef(null) + + useTutorialModal('profile', ship === `~${window.ship}`, anchorRef); + const cover = contact?.cover && !hideCover ? ( - + {cover}
{props.children} @@ -145,9 +149,6 @@ export function ProfileOwnControls(props: any): ReactElement { export function Profile(props: any): ReactElement { const history = useHistory(); - if (!props.ship) { - return null; - } const { contact, nackedContacts, hasLoaded, isPublic, isEdit, ship } = props; const nacked = nackedContacts.has(ship); const formRef = useRef(null); @@ -160,30 +161,17 @@ export function Profile(props: any): ReactElement { const anchorRef = useRef(null); - useTutorialModal('profile', ship === `~${window.ship}`, anchorRef); + console.log(ship); - const ViewInterface = () => { - return ( -
- - - -
- ); - }; - const EditInterface = () => { - return ( -
- + if (!props.ship) { + return null; + } + + return ( +
+ + { isEdit ? ( - -
- ); - }; - - return isEdit ? : ; + ) : ( + + )} +
+
+ ); }