Skip to content

Commit

Permalink
Update title highlighting method
Browse files Browse the repository at this point in the history
  • Loading branch information
WBerredo committed May 24, 2024
1 parent 03d4881 commit e8c8c57
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions client/site-profiler/components/performance-section/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useTranslate } from 'i18n-calypso';
import { MetricsInsight } from 'calypso/site-profiler/components/metrics-insight';
import { MetricsSection } from 'calypso/site-profiler/components/metrics-section';
import { MetricsInsight } from '../metrics-insight';
import { getTitleTranslateOptions } from 'calypso/site-profiler/utils/get-title-translate-options';

interface PerformanceSectionProps {
performanceMetricsRef: React.RefObject< HTMLObjectElement >;
Expand All @@ -15,13 +16,8 @@ export const PerformanceSection: React.FC< PerformanceSectionProps > = ( props )
<MetricsSection
name={ translate( 'Performance Metrics' ) }
title={ translate(
"Your site {{success}}performs well{{/success}}, but there's always room to be faster and smoother for your visitors.",
{
components: {
success: <span className="success" />,
alert: <span className="alert" />,
},
}
"Your site {{good}}performs well{{/good}}, but there's always room to be faster and smoother for your visitors.",
getTitleTranslateOptions()
) }
subtitle={ translate( "Boost your site's performance" ) }
ref={ performanceMetricsRef }
Expand Down

0 comments on commit e8c8c57

Please sign in to comment.