diff --git a/app/page.js b/app/page.js
index 31fb904..cd12451 100644
--- a/app/page.js
+++ b/app/page.js
@@ -2,6 +2,7 @@ import HomePage from "@/components/home";
import Layout from "@/components/layout";
export default function Home() {
+
return (
diff --git a/components/aboutUs/Services.js b/components/aboutUs/Services.js
index efbd615..90dc5f3 100644
--- a/components/aboutUs/Services.js
+++ b/components/aboutUs/Services.js
@@ -15,7 +15,7 @@ function Services() {
return (
-
+
diff --git a/components/blog/detail/commentUser/index.js b/components/blog/detail/commentUser/index.js
index a1005ff..9deb083 100644
--- a/components/blog/detail/commentUser/index.js
+++ b/components/blog/detail/commentUser/index.js
@@ -7,7 +7,7 @@ import AddComment from "./AddComment";
function CommentUser({ data, loading }) {
return (
-
+
diff --git a/components/blog/relatedContent/index.js b/components/blog/relatedContent/index.js
index 10ca613..fe9af35 100644
--- a/components/blog/relatedContent/index.js
+++ b/components/blog/relatedContent/index.js
@@ -6,7 +6,7 @@ import Item from "./Item";
function RelatedContent({ data, loading }) {
return (
-
+
diff --git a/components/contactUs/Call.js b/components/contactUs/Call.js
index eb51a72..6394ce1 100644
--- a/components/contactUs/Call.js
+++ b/components/contactUs/Call.js
@@ -6,11 +6,8 @@ import WhatsappC from "../icons/WhatsappC";
import ContentContact from "./ContentContact";
function Call() {
- // const openURL = url => window.open(url);
-
return (
-
+
با ما در ارتباط باشید
diff --git a/components/layout/header/Content.js b/components/layout/header/Content.js
new file mode 100644
index 0000000..19acf7e
--- /dev/null
+++ b/components/layout/header/Content.js
@@ -0,0 +1,58 @@
+"use client";
+
+import { Button } from "@mui/material";
+import Logo from "@/app/component/Logo";
+import Link from "next/link";
+import Row from "./list/Row";
+import Col from "./list/col";
+import ButtonMenu from "./list/col/ButtonMenu";
+import BgGray from "./list/col/BgGray";
+import UserLogin from "@/components/icons/UserLogin";
+import { useState } from "react";
+
+function Content({ matchedCity }) {
+ const [isActive, setIsActive] = useState(false);
+
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
+
+export default Content
\ No newline at end of file
diff --git a/components/layout/header/index.js b/components/layout/header/index.js
index 58a04d7..7cb56dc 100644
--- a/components/layout/header/index.js
+++ b/components/layout/header/index.js
@@ -1,57 +1,14 @@
-"use client";
-
-import { Button } from "@mui/material";
-import Logo from "@/app/component/Logo";
-import Link from "next/link";
-import Row from "./list/Row";
-import Col from "./list/col";
-import ButtonMenu from "./list/col/ButtonMenu";
-import { useState } from "react";
-import BgGray from "./list/col/BgGray";
-import UserLogin from "@/components/icons/UserLogin";
+import Content from "./Content";
+// import { getStateInfo } from "@/lib/getStateInfo";
function Header({ name }) {
- const [isActive, setIsActive] = useState(false);
+ // const { matchedCity } = getStateInfo();
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
);
}
diff --git a/components/layout/index.js b/components/layout/index.js
index 7a58af0..5ae210b 100644
--- a/components/layout/index.js
+++ b/components/layout/index.js
@@ -1,12 +1,7 @@
-"use client";
-
+import { getStateInfo } from "@/lib/getStateInfo";
import Footer from "./footer";
import Header from "./header";
-// AOS
-import Aos from "aos";
-import "aos/dist/aos.css";
-import { useEffect } from "react";
import Sidebar from "./sidebar";
function Layout({
@@ -23,9 +18,7 @@ function Layout({
value,
setValue,
}) {
- useEffect(() => {
- Aos.init({ duration: 1000 });
- }, []);
+ const { matchedCity } = getStateInfo();
return (
@@ -41,10 +34,9 @@ function Layout({
{isSidebar && (
diff --git a/components/layout/sidebar/List.js b/components/layout/sidebar/List.js
index 7557256..51ce95b 100644
--- a/components/layout/sidebar/List.js
+++ b/components/layout/sidebar/List.js
@@ -1,3 +1,5 @@
+"use client"
+
import CardD from "@/components/icons/CardD";
import LogoutD from "@/components/icons/LogoutD";
import CalndarD from "@/components/icons/CalndarD";
diff --git a/components/layoutPanel/index.js b/components/layoutPanel/index.js
index 3a10ba4..02afee3 100644
--- a/components/layoutPanel/index.js
+++ b/components/layoutPanel/index.js
@@ -1,19 +1,8 @@
-"use client";
-
-import { useEffect } from "react";
import Header from "./header";
import Sidebar from "./sidebar";
import UserDetail from "./userDetail";
-// AOS
-import Aos from "aos";
-import "aos/dist/aos.css";
-
function LayoutPanel({ children, data }) {
- useEffect(() => {
- Aos.init({ duration: 1000 });
- }, []);
-
return (