From d9ee2a6f73e029bdb3f2223a82e28a991fea6717 Mon Sep 17 00:00:00 2001 From: TJ Durnford Date: Fri, 21 May 2021 20:49:01 -0600 Subject: [PATCH] fix: Teaching bubble missing content (#7764) * fix: Teaching bubble missing content * Fix item ref Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com> Co-authored-by: Soroush --- Composer/packages/client/src/Onboarding/content.tsx | 2 +- Composer/packages/client/src/components/NavItem.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Composer/packages/client/src/Onboarding/content.tsx b/Composer/packages/client/src/Onboarding/content.tsx index 0aa810e658..fe29019b3e 100644 --- a/Composer/packages/client/src/Onboarding/content.tsx +++ b/Composer/packages/client/src/Onboarding/content.tsx @@ -168,7 +168,7 @@ export const getTeachingBubble = (id: string | undefined): TeachingBubble => { }, }; - case 'projectSettings': + case 'publish': return { content: formatMessage('Publish your bot to Azure and manage published bots here.'), headline: formatMessage('Configure and publish'), diff --git a/Composer/packages/client/src/components/NavItem.tsx b/Composer/packages/client/src/components/NavItem.tsx index 88e5b9f639..2a067dfbb6 100644 --- a/Composer/packages/client/src/components/NavItem.tsx +++ b/Composer/packages/client/src/components/NavItem.tsx @@ -99,7 +99,9 @@ export const NavItem: React.FC = (props) => { const active = (pathname.startsWith(to) || match?.test(pathname)) ?? false; - const addRef = useCallback((ref) => onboardingAddCoachMarkRef({ [`nav${labelName.replace(' ', '')}`]: ref }), []); + const addRef = useCallback((ref) => onboardingAddCoachMarkRef({ [`nav${labelName.replace(' ', '')}`]: ref }), [ + labelName, + ]); const getIcon = (iconName: string) => { let navIcon;