From 15743a482baf3611a2f512c9a00261308f5f4f03 Mon Sep 17 00:00:00 2001 From: barry3406 Date: Thu, 9 Apr 2026 05:09:26 -0700 Subject: [PATCH] perf: remove unnecessary "use client" from pricing-section.tsx This component uses zero client-side features (no hooks, no event handlers, no browser APIs). It only defines a static data array and renders a child component which is already a Client Component itself. Removing the directive lets Next.js render this wrapper and its static data on the server, reducing the client JS bundle. Fixes #1193 --- surfsense_web/components/pricing/pricing-section.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/surfsense_web/components/pricing/pricing-section.tsx b/surfsense_web/components/pricing/pricing-section.tsx index ceea176a9..43177e383 100644 --- a/surfsense_web/components/pricing/pricing-section.tsx +++ b/surfsense_web/components/pricing/pricing-section.tsx @@ -1,5 +1,3 @@ -"use client"; - import { Pricing } from "@/components/pricing"; const demoPlans = [