Skip to content

Commit

Permalink
fix breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelmsmith committed Feb 13, 2024
1 parent d3a2d26 commit 856005b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 52 deletions.
29 changes: 16 additions & 13 deletions frontend/src/scenes/onboarding/OnboardingStep.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import './onboarding.scss'

import { LemonButton } from '@posthog/lemon-ui'
import { LemonButton, Link } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { supportLogic } from 'lib/components/Support/supportLogic'
import { IconArrowRight } from 'lib/lemon-ui/icons'
import { IconArrowRight, IconChevronRight } from 'lib/lemon-ui/icons'
import React from 'react'

import { onboardingLogic, OnboardingStepKey, stepKeyToTitle } from './onboardingLogic'
Expand Down Expand Up @@ -42,27 +40,32 @@ export const OnboardingStep = ({
return (
<>
<div className="pb-2">
<div className={`grid onboardingHeader ${hideHeader && 'hidden'}`}>
<div className={`flex justify-between items-center text-muted ${hideHeader && 'hidden'}`}>
<h1 className="font-bold m-0 pl-2">
{title || stepKeyToTitle(currentOnboardingStep?.props.stepKey)}
</h1>
<div />
<div className="flex items-center">
<div className="flex items-center gap-x-3">
{onboardingStepNames.map((stepName, idx) => {
return (
<React.Fragment key={`stepKey-${idx}`}>
<div
className={`text-sm onboardingCrumb ${
<Link
className={`text-sm ${
currentOnboardingStep?.props.stepKey === stepName && 'font-bold'
}`}
} font-bold`}
data-text={stepKeyToTitle(stepName)}
key={stepName}
onClick={() => setStepKey(stepName)}
>
{stepKeyToTitle(stepName)}
</div>
<span
className={`text-sm ${
currentOnboardingStep?.props.stepKey !== stepName && 'text-muted'
}`}
>
{stepKeyToTitle(stepName)}
</span>
</Link>
{onboardingStepNames.length > 1 && idx !== onboardingStepNames.length - 1 && (
<div key={`${stepName}-separator`} className="onboardingCrumbSeparator" />
<IconChevronRight className="text-xl" />
)}
</React.Fragment>
)
Expand Down
39 changes: 0 additions & 39 deletions frontend/src/scenes/onboarding/onboarding.scss

This file was deleted.

0 comments on commit 856005b

Please sign in to comment.