diff --git a/app/wiki/heroes/layout.tsx b/app/wiki/heroes/layout.tsx
new file mode 100644
index 00000000..2c468d53
--- /dev/null
+++ b/app/wiki/heroes/layout.tsx
@@ -0,0 +1,15 @@
+import React from "react";
+import { TabsContent } from "@/components/shared/tabs";
+
+async function HeroesPage({ children }: { children: React.ReactNode }) {
+ return (
+
+ {children}
+
+ );
+}
+
+export default HeroesPage;
diff --git a/app/wiki/heroes/page.tsx b/app/wiki/heroes/page.tsx
index a62e721b..b173012b 100644
--- a/app/wiki/heroes/page.tsx
+++ b/app/wiki/heroes/page.tsx
@@ -1,5 +1,7 @@
import getHeroes from "@/lib/actions/getHeroes";
-import { TabsContent } from "@/components/shared/tabs";
+import { GradiantCard } from "@/components/shared/gradiant-card";
+import HeroFilter from "@/components/hero-filter";
+import HeroSearch from "@/components/hero-search";
import HeroesContainer from "@/components/wiki/heroes/heroes-container";
import { Metadata } from "next";
import { defaultOpenGraphMD, defaultTwitterMD } from "@/lib/configs/metadata";
@@ -34,12 +36,16 @@ async function HeroesPage({
});
return (
-
+ <>
+
+
+
+
-
+ >
);
}
diff --git a/components/wiki/heroes/heroes-container.tsx b/components/wiki/heroes/heroes-container.tsx
index cbf1731a..f1e155eb 100644
--- a/components/wiki/heroes/heroes-container.tsx
+++ b/components/wiki/heroes/heroes-container.tsx
@@ -1,15 +1,10 @@
"use client";
-import { useMemo } from "react";
+import React, { useMemo } from "react";
import { useRouter } from "next/navigation";
import { HeroesDocument } from "@/lib/mongoose/schema/heroes";
-import HeroFilter from "@/components/hero-filter";
-import HeroSearch from "@/components/hero-search";
import HeroCard from "./hero-card";
-import { GradiantCard } from "@/components/shared/gradiant-card";
import { Query } from "@/lib/types";
-import { cn } from "@/lib/utils";
-
interface IHeroesContainer {
heroes: HeroesDocument[];
query: Query;
@@ -18,7 +13,7 @@ interface IHeroesContainer {
const HeroesContainer = ({ heroes, query }: IHeroesContainer) => {
const router = useRouter();
- const filteredHeroes = useMemo(() => {
+ const filteredHeroes = React.useMemo(() => {
if (!query) return heroes;
const { q, type, lane } = query;
@@ -53,19 +48,6 @@ const HeroesContainer = ({ heroes, query }: IHeroesContainer) => {
return (
<>
-
-
-
-
-
-
-
{filteredHeroes.length > 0 ? (
{filteredHeroes.map((hero) => (
diff --git a/components/wiki/statistics/tournaments-popover.tsx b/components/wiki/statistics/tournaments-popover.tsx
index 0384bc9f..db248554 100644
--- a/components/wiki/statistics/tournaments-popover.tsx
+++ b/components/wiki/statistics/tournaments-popover.tsx
@@ -42,7 +42,7 @@ export default function StatsContainer({ children, tourNames }: IStats) {