diff --git a/components/AppsComponent/CategoriesData/page.jsx b/components/AppsComponent/CategoriesData/page.jsx index 32fed5a..7fe305f 100644 --- a/components/AppsComponent/CategoriesData/page.jsx +++ b/components/AppsComponent/CategoriesData/page.jsx @@ -75,7 +75,7 @@ export default function CategoriesData({ params }) { {!CTX.state.isMobile && (
{data?.persianName}
diff --git a/components/Cards/CardCategories/page.jsx b/components/Cards/CardCategories/page.jsx index d9aa91e..70fa6db 100644 --- a/components/Cards/CardCategories/page.jsx +++ b/components/Cards/CardCategories/page.jsx @@ -7,10 +7,12 @@ import PersianNumber from "plugins/PersianNumber"; import { useContext } from "react"; import logo from "../../../public/images/logo.png"; import AddToCart from "../Components/AddToCart/page"; +import hyphenateString from "plugins/HyphenateString/page"; const CardCategories = ({ data }) => { const CTX = useContext(AppContext); const cart = CTX.state.cart; + const hyphenatedName = hyphenateString(data.persianName); return ({data?.persianName}
diff --git a/components/Cards/CardNormal/page.jsx b/components/Cards/CardNormal/page.jsx index cce89f2..3f77b66 100644 --- a/components/Cards/CardNormal/page.jsx +++ b/components/Cards/CardNormal/page.jsx @@ -8,17 +8,19 @@ import PersianNumber from "plugins/PersianNumber"; import AppContext from "@ctx/AppContext"; import AddToCart from "../Components/AddToCart/page"; import Link from "next/link"; +import hyphenateString from "plugins/HyphenateString/page"; const CardNormal = ({ data, priority }) => { const CTX = useContext(AppContext); const cart = CTX.state.cart; console.log(data); + const hyphenatedName = hyphenateString(data.persianName); return ( <> {" "} <> - +@@ -127,7 +129,9 @@ const SideBarNavBarMobile = () => { {firstChild.map((e, index) => (
{e.name}
@@ -293,7 +297,9 @@ const Navbar = ({ theme }) => { {e.children.map((child, index) => ({