diff --git a/src/components/NavBar/NavBar.jsx b/src/components/NavBar/NavBar.jsx
index b0b42e6..8ebfe96 100644
--- a/src/components/NavBar/NavBar.jsx
+++ b/src/components/NavBar/NavBar.jsx
@@ -31,6 +31,8 @@ import fintechIcon from "../../assets/images/Navicons/fintechIcon.png";
import adTech from "../../assets/images/Navicons/adTech.png";
import marTech from "../../assets/images/Navicons/marTech.png";
import healthTech from "../../assets/images/Navicons/healthTech.png";
+import security from "../../assets/images/Navicons/security.png";
+import telecom from "../../assets/images/Navicons/telecom.png";
import { useGetUseCaseQuery } from "../../Redux/slice/useCaseSlice";
const NavBar = () => {
@@ -496,7 +498,7 @@ const NavBar = () => {
borderRadius={"10px"}
border={"none"}
padding={"1rem"}
- width={"55%"}
+ width={"fit-content"}
margin={"0 auto"}
_focus={{
boxShadow: "none",
@@ -505,76 +507,100 @@ const NavBar = () => {
onMouseLeave={() => setIsHoveredCases(false)}
>
-
-
-
+
-
- FinTech
+
+
+ FinTech
+
+
+ */}
+
+
+ {useCase?.map((slug) => (
+
+
+
+
+ {slug.title}
+
+
-
+ ))}
-
-
-
+
-
- AdTech
-
-
-
+
+
+ MarTech
+
+
+
-
-
-
+
-
- MarTech
-
-
-
-
-
-
{
gap={"1rem"}
marginBottom={"1rem"}
>
-
+
Identity and Security
@@ -625,11 +651,14 @@ const NavBar = () => {
gap={"1rem"}
marginBottom={"1rem"}
>
-
+
Telecom
-
+ */}
+
+
+
{/* {
+ const { title_slug } = useParams();
+ const { data, error, isLoading } = useGetUseCaseQuery();
+ const useCases = data?.data?.rows;
+ console.log(data?.data?.rows);
+ useEffect(() => {
+ window.scrollTo(0, 0);
+ }, []);
+
+ if (isLoading) {
+ return (
+
+
+
+ );
+ }
+
+ const matchingUseCase = useCases
+ ? useCases.find((item) => item.title_slug === title_slug)
+ : null;
+
+ console.log(matchingUseCase);
+ return (
+ <>
+ {matchingUseCase ? (
+
+
+
+
+
+ {matchingUseCase.title}
+
+
+ {matchingUseCase.meta_description}
+
+
+
+
+
+
+
+ {/* ========[ Head-Para ]====== */}
+
+
+ {matchingUseCase.problem}
+
+
+ {matchingUseCase.solution}
+
+
+
+
+ {/*
+ {title}
+
+
+ {description}
+ */}
+
+
+
+
+ ) : (
+
+ )}
+ >
+ );
+};
+
+export default NewUseCase;
diff --git a/src/components/UseCase/UseCase.jsx b/src/components/UseCase/UseCase.jsx
index 3bda6ce..fd13f2c 100644
--- a/src/components/UseCase/UseCase.jsx
+++ b/src/components/UseCase/UseCase.jsx
@@ -6,6 +6,7 @@ import React, { useEffect } from "react";
import { Box, Text } from "@chakra-ui/react";
import { useParams } from "react-router-dom";
import { useGetUseCaseQuery } from "../../Redux/slice/useCaseSlice";
+import Loader from "../Loader/Loader";
// eslint-disable-next-line react/prop-types
const UseCase = ({ useCase, bannerImage, bannerHeading, bannerSubHeading }) => {
diff --git a/src/pages/UseCases.jsx b/src/pages/UseCases.jsx
index 8e8de10..72d4a04 100644
--- a/src/pages/UseCases.jsx
+++ b/src/pages/UseCases.jsx
@@ -2,6 +2,7 @@
/* eslint-disable react/prop-types */
import { useEffect } from "react";
import UseCase from "../components/UseCase/UseCase";
+import NewUseCase from "../components/UseCase/NewUseCase";
const UseCases = ({
bannerHeading,
@@ -14,7 +15,7 @@ const UseCases = ({
}, []);
return (
<>
-
+
{/* ,
},
{
- path: "UseCases/:title_slug",
+ path: "/:title_slug",
element: ,
},