Skip to content

Commit

Permalink
remove hasTranslation check added from 93926
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo committed Sep 16, 2024
1 parent a4c3be4 commit 27c9d24
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { useHasEnTranslation } from '@automattic/i18n-utils';
import { useTranslate } from 'i18n-calypso';

export default function HighlightCardsHeading( { children }: { children: React.ReactNode } ) {
const translate = useTranslate();
const hasEnTranslation = useHasEnTranslation();
const hasTranslation = hasEnTranslation( 'Updates every 30 minutes' );
return (
<div className="highlight-cards-heading__wrapper">
<h3 className="highlight-cards-heading">{ children }</h3>
{ hasTranslation && (
<div className="highlight-cards-heading__update-frequency">
<span>{ translate( 'Updates every 30 minutes' ) }</span>
</div>
) }
<div className="highlight-cards-heading__update-frequency">
<span>{ translate( 'Updates every 30 minutes' ) }</span>
</div>
</div>
);
}

0 comments on commit 27c9d24

Please sign in to comment.