From b7183b402964a14a855ac0871f0629201222b44e Mon Sep 17 00:00:00 2001 From: Christian Gastrell Date: Wed, 13 Nov 2024 17:23:14 -0300 Subject: [PATCH] remove references to tierPlansEnabled, they never are now --- .../ai-assistant-plugin-sidebar/index.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-assistant-plugin-sidebar/index.tsx b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-assistant-plugin-sidebar/index.tsx index 0fe508d9f5172..a9b34a851da34 100644 --- a/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-assistant-plugin-sidebar/index.tsx +++ b/projects/plugins/jetpack/extensions/plugins/ai-assistant-plugin/components/ai-assistant-plugin-sidebar/index.tsx @@ -156,9 +156,7 @@ const JetpackAndSettingsContent = ( { }; export default function AiAssistantPluginSidebar() { - const { requireUpgrade, upgradeType, currentTier, tierPlansEnabled, isOverLimit } = - useAiFeature(); - const { checkoutUrl } = useAICheckout(); + const { requireUpgrade, upgradeType, currentTier, isOverLimit } = useAiFeature(); const { tracks } = useAnalytics(); const isViewable = useSelect( select => { @@ -185,8 +183,7 @@ export default function AiAssistantPluginSidebar() { tracks.recordEvent( 'jetpack_ai_panel_open', { placement } ); }; - const showUsagePanel = - planType === PLAN_TYPE_FREE || ( tierPlansEnabled && planType !== PLAN_TYPE_UNLIMITED ); + const showUsagePanel = planType === PLAN_TYPE_FREE; const showFairUsageNotice = planType === PLAN_TYPE_UNLIMITED && isOverLimit; const isBreveAvailable = getBreveAvailability(); @@ -244,14 +241,6 @@ export default function AiAssistantPluginSidebar() { busy={ false } disabled={ requireUpgrade } /> - { requireUpgrade && tierPlansEnabled && ( - - ) }