diff --git a/src/app/ar/contact/page.tsx b/src/app/ar/contact/page.tsx index 7b90263..f2328a8 100644 --- a/src/app/ar/contact/page.tsx +++ b/src/app/ar/contact/page.tsx @@ -1,9 +1,17 @@ import {getData} from "@/cms"; +import Footer from "@/components/Footer"; +import Navbar from "@/components/Navbar"; import ContactUs from "@/templates/ContactUs"; import ContactPage from "@/types/cms/contact"; export default async function Page() { const {data} = await getData("contact", "ar"); - return ; + return ( +
+ + ; +
+
+ ); } diff --git a/src/app/ar/price/page.tsx b/src/app/ar/price/page.tsx index 6daf57d..28fe86c 100644 --- a/src/app/ar/price/page.tsx +++ b/src/app/ar/price/page.tsx @@ -1,9 +1,17 @@ import {getData} from "@/cms"; +import Footer from "@/components/Footer"; +import Navbar from "@/components/Navbar"; import Price from "@/templates/Price"; import PricePage from "@/types/cms/price"; export default async function Page() { const {data} = await getData("price", "ar"); - return ; + return ( +
+ + +
+
+ ); } diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index ec2747b..ba8eb89 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -1,9 +1,17 @@ import {getData} from "@/cms"; +import Footer from "@/components/Footer"; +import Navbar from "@/components/Navbar"; import ContactUs from "@/templates/ContactUs"; import ContactPage from "@/types/cms/contact"; export default async function Page() { const {data} = await getData("contact", "en"); - return ; + return ( +
+ + ; +
+
+ ); } diff --git a/src/app/price/page.tsx b/src/app/price/page.tsx index 212224a..0fbf764 100644 --- a/src/app/price/page.tsx +++ b/src/app/price/page.tsx @@ -1,9 +1,17 @@ import {getData} from "@/cms"; +import Footer from "@/components/Footer"; +import Navbar from "@/components/Navbar"; import Price from "@/templates/Price"; import PricePage from "@/types/cms/price"; export default async function Page() { const {data} = await getData("price", "en"); - return ; + return ( +
+ + +
+
+ ); } diff --git a/src/templates/ContactUs.tsx b/src/templates/ContactUs.tsx index 6efd6c3..cdbce49 100644 --- a/src/templates/ContactUs.tsx +++ b/src/templates/ContactUs.tsx @@ -18,9 +18,7 @@ type FormValues = { }; interface Props { - language: "en" | "ar"; data: ContactPage; - page: string; } const ErrorMessage = ({message}: {message: string}) => ( @@ -28,7 +26,7 @@ const ErrorMessage = ({message}: {message: string}) => ( {message} ); -export default function App({language, data, page}: Props) { +export default function App({data}: Props) { const selectOptions = [ { label: data.Feedback, @@ -92,67 +90,63 @@ export default function App({language, data, page}: Props) { return ( <> -
- -
-
- {data.Title} -
-
-
-
- - {errors.name && errors.name.type === "required" && } - - {errors.email && errors.email.type === "required" && } - {errors.email && errors.email.type === "pattern" && } - - {errors.subject && errors.subject.type === "required" && } - + {errors.name && errors.name.type === "required" && } + + {errors.email && errors.email.type === "required" && } + {errors.email && errors.email.type === "pattern" && } + + {errors.subject && errors.subject.type === "required" && } + - {errors.type && errors.type.type === "required" && } -