Skip to content

Commit

Permalink
remove hasTranslation check added from 93926 (#94595)
Browse files Browse the repository at this point in the history
  • Loading branch information
Addison-Stavlo authored Sep 17, 2024
1 parent 46e4233 commit 869c878
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 869c878

Please sign in to comment.