Przeglądaj źródła

[web] Remove unused `get_more_compile_time` string key because of `paywall-cta` split test is removed (#24574)

* Re-add missing translation key

* Remove `get_more_compile_time` translation key because of `paywall-cta` is removed

GitOrigin-RevId: bf0fe677adc32a91db57d41d83f0f1e0b2ee3741
M Fahru 1 rok temu
rodzic
commit
f0fe0db10c

+ 0 - 1
services/web/frontend/extracted-translations.json

@@ -609,7 +609,6 @@
   "get_error_assist": "",
   "get_exclusive_access_to_labs": "",
   "get_in_touch": "",
-  "get_more_compile_time": "",
   "get_most_subscription_by_checking_features": "",
   "get_most_subscription_discover_premium_features": "",
   "git": "",

+ 1 - 6
services/web/frontend/js/features/pdf-preview/components/timeout-message-after-paywall-dismissal.tsx

@@ -3,7 +3,6 @@ import { Trans, useTranslation } from 'react-i18next'
 import { memo, useCallback, useEffect } from 'react'
 import { useDetachCompileContext } from '@/shared/context/detach-compile-context'
 import StartFreeTrialButton from '@/shared/components/start-free-trial-button'
-import { useFeatureFlag } from '@/shared/context/split-test-context'
 import MaterialIcon from '@/shared/components/material-icon'
 import { useStopOnFirstError } from '@/shared/hooks/use-stop-on-first-error'
 import * as eventTracking from '@/infrastructure/event-tracking'
@@ -50,8 +49,6 @@ const CompileTimeout = memo(function CompileTimeout({
 }: CompileTimeoutProps) {
   const { t } = useTranslation()
 
-  const hasNewPaywallCta = useFeatureFlag('paywall-cta')
-
   useEffect(() => {
     eventTracking.sendMB('paywall-prompt', {
       'paywall-type': 'compile-timeout',
@@ -111,9 +108,7 @@ const CompileTimeout = memo(function CompileTimeout({
                   buttonProps={{ variant: 'secondary' }}
                   handleClick={onPaywallClick}
                 >
-                  {hasNewPaywallCta
-                    ? t('get_more_compile_time')
-                    : t('try_for_free')}
+                  {t('try_for_free')}
                 </StartFreeTrialButton>
               </div>
             )}