Allow for different content in opted in/ out experiments (#28530)
* feat: allowing for different messages in experiment when user is opted in GitOrigin-RevId: 7b4254be6cf8147399010053d5a2a4cf9bb8f342
This commit is contained in:
committed by
Copybot
parent
07166bff73
commit
bfd00a8151
@@ -9,7 +9,8 @@ import getMeta from '@/utils/meta'
|
||||
type IntegrationLinkingWidgetProps = {
|
||||
logo: ReactNode
|
||||
title: string
|
||||
description: string
|
||||
description: string | ReactNode
|
||||
optedInDescription?: string | ReactNode
|
||||
helpPath?: string
|
||||
labsEnabled?: boolean
|
||||
experimentName: string
|
||||
@@ -22,6 +23,7 @@ export function LabsExperimentWidget({
|
||||
logo,
|
||||
title,
|
||||
description,
|
||||
optedInDescription,
|
||||
helpPath,
|
||||
labsEnabled,
|
||||
experimentName,
|
||||
@@ -69,7 +71,7 @@ export function LabsExperimentWidget({
|
||||
{optedIn && <OLBadge bg="info">{t('enabled')}</OLBadge>}
|
||||
</div>
|
||||
<p className="small">
|
||||
{description}{' '}
|
||||
{optedIn && optedInDescription ? optedInDescription : description}{' '}
|
||||
{helpPath && (
|
||||
<a href={helpPath} target="_blank" rel="noreferrer">
|
||||
{t('learn_more')}
|
||||
|
||||
Reference in New Issue
Block a user