Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Dec 5, 2023
1 parent ba67f85 commit 08f4e08
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion frontend/src/lib/components/PayGatePage/PayGatePage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import './PayGatePage.scss'

import { IconOpenSidebar } from '@posthog/icons'
import { useValues } from 'kea'
import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { IconOpenInNew } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { identifierToHuman } from 'lib/utils'
Expand All @@ -26,6 +28,7 @@ export function PayGatePage({
featureName,
}: PayGatePageInterface): JSX.Element {
const { upgradeLink } = useValues(billingLogic)
const is3000 = useFeatureFlag('POSTHOG_3000', 'test')
featureName = featureName || identifierToHuman(featureKey, 'title')

return (
Expand All @@ -46,7 +49,7 @@ export function PayGatePage({
center
data-attr={`${featureKey}-learn-more`}
>
Learn more <IconOpenInNew style={{ marginLeft: 8 }} />
Learn more {is3000 ? <IconOpenSidebar className="ml-2" /> : <IconOpenInNew className="ml-2" />}
</LemonButton>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { IconOpenSidebar } from '@posthog/icons'
import { useActions } from 'kea'
import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { IconClose, IconOpenInNew, IconPlus } from 'lib/lemon-ui/icons'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { userLogic } from 'scenes/userLogic'
Expand Down Expand Up @@ -37,6 +39,7 @@ export const ProductIntroduction = ({
customHog?: React.ComponentType<{ className?: string }>
}): JSX.Element => {
const { updateHasSeenProductIntroFor } = useActions(userLogic)
const is3000 = useFeatureFlag('POSTHOG_3000', 'test')
const actionable = action || actionElementOverride
return (
<div className="border-2 border-dashed border-border w-full p-8 justify-center rounded-md mt-2 mb-4">
Expand Down Expand Up @@ -103,12 +106,18 @@ export const ProductIntroduction = ({
<LemonButton
type={actionable ? 'tertiary' : 'secondary'}
status="muted"
sideIcon={<IconOpenInNew className="w-4 h-4" />}
sideIcon={
is3000 ? (
<IconOpenSidebar className="w-4 h-4" />
) : (
<IconOpenInNew className="w-4 h-4" />
)
}
to={`${docsURL}?utm_medium=in-product&utm_campaign=empty-state-docs-link`}
data-attr="product-introduction-docs-link"
targetBlank
>
Learn more about {productName}
Learn more
</LemonButton>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function DataWarehouseExternalScene(): JSX.Element {
{(shouldShowProductIntroduction || shouldShowEmptyState) && (
<ProductIntroduction
productName={'Data Warehouse'}
thingName={'data warehouse table'}
thingName={'table'}
description={
'Bring your production database, revenue data, CRM contacts or any other data into PostHog.'
}
Expand Down

0 comments on commit 08f4e08

Please sign in to comment.