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
+6 -2
View File
@@ -1,6 +1,8 @@
"use client";
const HeroDecor = ({ className = "" }) => {
import React, { memo } from "react";
const HeroDecor = memo(({ className = "" }) => {
return (
<svg
className={`text-[var(--color-surface-default-brand-lighter-accent)] opacity-50 ${className}`}
@@ -65,6 +67,8 @@ const HeroDecor = ({ className = "" }) => {
</g>
</svg>
);
};
});
HeroDecor.displayName = "HeroDecor";
export default HeroDecor;