diff --git a/app/component/element/Field.js b/app/component/element/Field.js index f5dcb88..54075a4 100644 --- a/app/component/element/Field.js +++ b/app/component/element/Field.js @@ -1,7 +1,7 @@ import { TextField } from "@mui/material"; import { styleTextSelectRight } from "@/mui"; -function Field({ title, error, inputProps, type, dir, value, updateState }) { +function Field({ title, error, spaceNull, inputProps, type, dir, value, updateState }) { return ( -

تماس با ما

-

- سامانه نوبت 724 به مردم کمک می کند تا دسترسی آسان تر و سریع تری به خدمات - پزشکی و درمانی داشته باشند. -

- - - ); -} - -export default Call; diff --git a/components/contactUs/call/Call.js b/components/contactUs/call/Call.js new file mode 100644 index 0000000..3f7c483 --- /dev/null +++ b/components/contactUs/call/Call.js @@ -0,0 +1,23 @@ +"use client"; + +import Links from "./Links"; + +function Call({ isDefault }) { + return ( +
+

تماس با ما

+

+ سامانه نوبت 724 به مردم کمک می کند تا دسترسی آسان تر و سریع تری به خدمات + پزشکی و درمانی داشته باشند. +

+ +
+ ); +} + +export default Call; diff --git a/components/contactUs/call/Links.js b/components/contactUs/call/Links.js new file mode 100644 index 0000000..8d1af87 --- /dev/null +++ b/components/contactUs/call/Links.js @@ -0,0 +1,28 @@ +import CallC from "../../icons/CallC"; +import EmailC from "../../icons/EmailC"; +import WhatsappC from "../../icons/WhatsappC"; +import ContentContact from "../ContentContact"; + +function Links() { + return ( + + ) +} + +export default Links \ No newline at end of file diff --git a/components/contactUs/index.js b/components/contactUs/index.js index 6eb69c7..6b8617f 100644 --- a/components/contactUs/index.js +++ b/components/contactUs/index.js @@ -1,11 +1,18 @@ -import Call from "./Call"; +import { getStateInfo } from "@/lib/getStateInfo"; +import Call from "./call/Call"; import Connect from "./Connect"; function ContactUsPage() { + const { matchedCity } = getStateInfo(); + const isDefault = matchedCity?.id === "63"; + console.log(isDefault); + return (
- - + + {isDefault && ( + + )}
); } diff --git a/components/register/LogInPage.js b/components/register/LogInPage.js index 26f3eb5..53e816e 100644 --- a/components/register/LogInPage.js +++ b/components/register/LogInPage.js @@ -31,6 +31,7 @@ function LogInPage({ setIsSendMsg, setStep }) { value={num} type="string" error={!error.valid} + spaceNull={true} inputProps={{ startAdornment: