diff --git a/package.json b/package.json index 259d65e..6274fec 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "react": "^18", "react-dom": "^18", "react-hook-form": "^7.50.1", - "react-icons": "^4.11.0", + "react-icons": "^5.1.0", "react-string-replace": "^1.1.1", "react-toastify": "^10.0.4", "sharp": "^0.32.6" diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index 19b171f..9fb80a6 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,106 +1,119 @@ import Link from "next/link"; -import {BiLogoFacebook} from "react-icons/bi"; -import {BsInstagram, BsTwitter} from "react-icons/bs"; +import { BiLogoFacebook } from "react-icons/bi"; +import { BsInstagram, BsTwitterX } from "react-icons/bs"; import translation from "@/translation/footer.json"; import clsx from "clsx"; import FooterSection from "@/types/cms/footer"; interface Props { - language: "en" | "ar"; - data: FooterSection; + language: "en" | "ar"; + data: FooterSection; } interface FooterLinkProps { - language: "en" | "ar"; - children: string; - href: string; + language: "en" | "ar"; + children: string; + href: string; } -const FooterLink = ({language, href, children}: FooterLinkProps) => { - return {children}; +const FooterLink = ({ language, href, children }: FooterLinkProps) => { + return ( + {children} + ); }; -export default function Footer({language, data}: Props) { - return ( - <> -
-
-
- {data.Navigation.Text} -
- - {data.Navigation.WhyUs} - - - {data.Navigation.Capabilities} - - - {data.Navigation.Expertise} - - - {data.Navigation.History} - - - {data.Navigation.Contact} - -
-
-
- {data.Services.Text} -
- - {data.Services.EnCoachBenefits} - - - {data.Services.StudentTestimonials} - -
-
-
- {data.About.Text} -
- - {data.About.Terms} - - - {data.About.PrivacyPolicy} - - - {data.About.Text} - -
-
-
- {data.GetInTouch.Title} -
- {data.GetInTouch.Text} -
- - - - - - - - - -
-
-
-
-
+export default function Footer({ language, data }: Props) { + return ( + <> +
+
+
+ {data.Navigation.Text} +
+ + {data.Navigation.WhyUs} + + + {data.Navigation.Capabilities} + + + {data.Navigation.Expertise} + + + {data.Navigation.History} + + + {data.Navigation.Contact} + +
+
+
+ {data.Services.Text} +
+ + {data.Services.EnCoachBenefits} + + + {data.Services.StudentTestimonials} + +
+
+
+ {data.About.Text} +
+ + {data.About.Terms} + + + {data.About.PrivacyPolicy} + + + {data.About.Text} + +
+
+
+ {data.GetInTouch.Title} +
+ {data.GetInTouch.Text} +
+ + + + + + + + + +
+
+
+
+
- - - ); + + + ); } diff --git a/yarn.lock b/yarn.lock index acf617b..40077a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2263,10 +2263,10 @@ react-hook-form@^7.50.1: resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-7.50.1.tgz#f6aeb17a863327e5a0252de8b35b4fc8990377ed" integrity sha512-3PCY82oE0WgeOgUtIr3nYNNtNvqtJ7BZjsbxh6TnYNbXButaD5WpjOmTjdxZfheuHKR68qfeFnEDVYoSSFPMTQ== -react-icons@^4.11.0: - version "4.11.0" - resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.11.0.tgz#4b0e31c9bfc919608095cc429c4f1846f4d66c65" - integrity sha512-V+4khzYcE5EBk/BvcuYRq6V/osf11ODUM2J8hg2FDSswRrGvqiYUYPRy4OdrWaQOBj4NcpJfmHZLNaD+VH0TyA== +react-icons@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-5.1.0.tgz#9e7533cc256571a610c2a1ec8a7a143fb1222943" + integrity sha512-D3zug1270S4hbSlIRJ0CUS97QE1yNNKDjzQe3HqY0aefp2CBn9VgzgES27sRR2gOvFK+0CNx/BW0ggOESp6fqQ== react-is@^16.13.1: version "16.13.1"