Skip to content

Commit 03f1322

Browse files
authored
chore: exp name (#5095)
1 parent dffd594 commit 03f1322

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

packages/shared/src/components/cards/ad/AdGrid.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ import { ButtonSize, ButtonVariant } from '../../buttons/common';
1616
import { AdFavicon } from './common/AdFavicon';
1717
import PostTags from '../common/PostTags';
1818
import { useFeature } from '../../GrowthBookProvider';
19-
import { adImprovementsV2Feature } from '../../../lib/featureManagement';
19+
import { adImprovementsV3Feature } from '../../../lib/featureManagement';
2020

2121
export const AdGrid = forwardRef(function AdGrid(
2222
{ ad, onLinkClick, onRefresh, domProps, index, feedIndex }: AdCardProps,
2323
inViewRef: InViewRef,
2424
): ReactElement {
2525
const { isPlus } = usePlusSubscription();
26-
const adImprovementsV2 = useFeature(adImprovementsV2Feature);
26+
const adImprovementsV3 = useFeature(adImprovementsV3Feature);
2727
const { ref, refetch, isRefetching } = useAutoRotatingAds(
2828
ad,
2929
index,
@@ -44,7 +44,7 @@ export const AdGrid = forwardRef(function AdGrid(
4444
<CardTitle className="line-clamp-4 typo-title3">
4545
{ad.description}
4646
</CardTitle>
47-
{adImprovementsV2 && ad?.matchingTags?.length > 0 ? (
47+
{adImprovementsV3 && ad?.matchingTags?.length > 0 ? (
4848
<PostTags
4949
post={{ tags: ad.matchingTags.slice(0, 6) }}
5050
className="!items-end"

packages/shared/src/components/cards/ad/AdList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import AdAttribution from './common/AdAttribution';
1818
import { AdFavicon } from './common/AdFavicon';
1919
import PostTags from '../common/PostTags';
2020
import { useFeature } from '../../GrowthBookProvider';
21-
import { adImprovementsV2Feature } from '../../../lib/featureManagement';
21+
import { adImprovementsV3Feature } from '../../../lib/featureManagement';
2222

2323
const getLinkProps = ({
2424
ad,
@@ -41,7 +41,7 @@ export const AdList = forwardRef(function AdCard(
4141
inViewRef: InViewRef,
4242
): ReactElement {
4343
const { isPlus } = usePlusSubscription();
44-
const adImprovementsV2 = useFeature(adImprovementsV2Feature);
44+
const adImprovementsV3 = useFeature(adImprovementsV3Feature);
4545
const { ref, refetch, isRefetching } = useAutoRotatingAds(
4646
ad,
4747
index,
@@ -67,7 +67,7 @@ export const AdList = forwardRef(function AdCard(
6767
>
6868
<AdFavicon ad={ad} className="mx-0 !mt-0 mb-2" />
6969
{ad.description}
70-
{adImprovementsV2 && ad?.matchingTags?.length > 0 ? (
70+
{adImprovementsV3 && ad?.matchingTags?.length > 0 ? (
7171
<PostTags post={{ tags: ad.matchingTags.slice(0, 6) }} />
7272
) : null}
7373
<AdAttribution

packages/shared/src/components/cards/ad/common/AdFavicon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Ad } from '../../../../graphql/posts';
66
import { adFaviconPlaceholder } from '../../../../lib/image';
77
import { apiUrl } from '../../../../lib/config';
88
import { useFeature } from '../../../GrowthBookProvider';
9-
import { adImprovementsV2Feature } from '../../../../lib/featureManagement';
9+
import { adImprovementsV3Feature } from '../../../../lib/featureManagement';
1010

1111
const pixelRatio = globalThis?.window?.devicePixelRatio ?? 1;
1212
const iconSize = Math.round(24 * pixelRatio);
@@ -16,9 +16,9 @@ type AdFaviconProps = {
1616
className?: string;
1717
};
1818
export const AdFavicon = ({ ad, className }: AdFaviconProps): ReactElement => {
19-
const adImprovementsV2 = useFeature(adImprovementsV2Feature);
19+
const adImprovementsV3 = useFeature(adImprovementsV3Feature);
2020
const imageLink =
21-
adImprovementsV2 && ad?.adDomain
21+
adImprovementsV3 && ad?.adDomain
2222
? `${apiUrl}/icon?url=${encodeURIComponent(ad.adDomain)}&size=${iconSize}`
2323
: adFaviconPlaceholder;
2424
return (

packages/shared/src/lib/featureManagement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ export const boostSettingsFeature = new Feature('boost_settings', {
107107
default_days: 7,
108108
});
109109

110-
export const adImprovementsV2Feature = new Feature('ad_improvements_v2', false);
110+
export const adImprovementsV3Feature = new Feature('ad_improvements_v3', false);

0 commit comments

Comments
 (0)