Add memo optimization

This commit is contained in:
adilallo
2025-10-07 16:50:33 -06:00
parent e3861f6857
commit 2ed878af81
37 changed files with 1852 additions and 1480 deletions
+5 -3
View File
@@ -1,12 +1,12 @@
"use client";
import React from "react";
import React, { memo } from "react";
import Image from "next/image";
import RuleCard from "./RuleCard";
import Button from "./Button";
import { getAssetPath } from "../../lib/assetUtils";
const RuleStack = ({ className = "" }) => {
const RuleStack = memo(({ className = "" }) => {
const handleTemplateClick = (templateName) => {
// Basic analytics tracking
if (typeof window !== "undefined") {
@@ -99,6 +99,8 @@ const RuleStack = ({ className = "" }) => {
</div>
</section>
);
};
});
RuleStack.displayName = "RuleStack";
export default RuleStack;