11import type { ReactElement , Ref } from 'react' ;
22import React , { forwardRef , useMemo , useRef } from 'react' ;
3- import classNames from 'classnames' ;
43import type { PostCardProps } from '../common/common' ;
54import { Container } from '../common/common' ;
65import { isVideoPost } from '../../../graphql/posts' ;
@@ -25,8 +24,6 @@ import classed from '../../../lib/classed';
2524import { BlockIcon , EarthIcon } from '../../icons' ;
2625import { Typography , TypographyType } from '../../typography/Typography' ;
2726import { IconSize } from '../../Icon' ;
28- import { useFeature } from '../../GrowthBookProvider' ;
29- import { featureCardUiColors } from '../../../lib/featureManagement' ;
3027
3128const EmptyStateContainer = classed (
3229 'div' ,
@@ -61,7 +58,6 @@ export const ShareGrid = forwardRef(function ShareGrid(
6158 const isPrivate =
6259 sharedPostPrivate && sharedPostSource ?. type === SourceType . Squad ;
6360 const isVideoType = isVideoPost ( post ) ;
64- const colorExp = useFeature ( featureCardUiColors ) ;
6561
6662 const footer = useMemo ( ( ) => {
6763 if ( isDeleted ) {
@@ -134,13 +130,7 @@ export const ShareGrid = forwardRef(function ShareGrid(
134130 postLink = { post . sharedPost . permalink }
135131 onReadArticleClick = { onReadArticleClick }
136132 />
137- < CardTitle
138- className = { classNames ( {
139- '!text-text-quaternary' : post . read && colorExp ,
140- } ) }
141- >
142- { title }
143- </ CardTitle >
133+ < CardTitle > { title } </ CardTitle >
144134 </ CardTextContainer >
145135 < Container >
146136 < CardSpace />
0 commit comments