Skip to content

Commit

Permalink
fix a type error, update intro in stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Yang committed Feb 9, 2024
1 parent 815173c commit 7f8e1c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion frontend/src/layout/navigation-3000/navigationLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export const navigation3000Logic = kea<navigation3000LogicType>([
): NavbarItem[][] => {
const isUsingSidebar = featureFlags[FEATURE_FLAGS.POSTHOG_3000_NAV]
const hasOnboardedFeatureFlags = currentTeam?.has_completed_onboarding_for?.[ProductKey.FEATURE_FLAGS]
const sectionOne = [
const sectionOne: NavbarItem[] = [
{
identifier: Scene.Dashboards,
label: 'Dashboards',
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/scenes/onboarding/Onboarding.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,3 @@ export const _OnboardingOtherProducts = (): JSX.Element => {
return <App />
}
_OnboardingOtherProducts.tags = ['test-skip'] // FIXME: For some reason this is captured correctly the first time, but then is written over a second time with SDKs view

export const _OnboardingProductIntroduction = (): JSX.Element => {
useStorybookMocks({
get: {
'/api/billing-v2/': {
...billingJson,
},
},
})

const { setProduct } = useActions(onboardingLogic)

useEffect(() => {
setProduct(billingJson.products[0])
router.actions.push(urls.onboardingProductIntroduction(ProductKey.PRODUCT_ANALYTICS))
}, [])
return <App />
}

0 comments on commit 7f8e1c7

Please sign in to comment.