Skip to content

Commit

Permalink
Simple changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Moamal-2000 committed May 9, 2024
1 parent e7ae71e commit 15c3cda
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
22 changes: 11 additions & 11 deletions public/locale/ar/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@
"twitter": "تويتر",
"instagram": "انستجرام",
"linkedin": "لينكدان",
"days": "يوم",
"hours": "ساعة",
"minutes": "دقيقة",
"seconds": "ثانية",
"days": "الايام",
"hours": "الساعات",
"minutes": "الدقائق",
"seconds": "الثواني",
"reset": "افراغ الحقول",
"welcome": "مرحباً بك",
"cancel": "الغاء",
Expand Down Expand Up @@ -388,11 +388,11 @@
"featuredSection": {
"mediumPoster": {
"title": "بلايستيشن 5",
"description": "الإصدار الأسود والأبيض من بلايستيشن 5 سيتوفر للبيع قريباً."
"description": "الإصدار الأسود والأبيض من بلايستيشن 5 سيتوفر للبيع قريباً"
},
"horizontalPoster": {
"title": "مجموعات النساء",
"description": "مجموعات المرأة المميزة التي تعطيك شعورًا آخر."
"description": "مجموعات المرأة المميزة التي تعطيك شعورًا آخر"
},
"smallPoster1": {
"title": "السماعات",
Expand Down Expand Up @@ -456,20 +456,20 @@
},

"connectionLabel": {
"restoredInternet": "تم استعادة الاتصال بالانترنت.",
"noInternetAvailable": "لا يوجد اتصال بالانترنت."
"restoredInternet": "تم استعادة الاتصال بالانترنت",
"noInternetAvailable": "لا يوجد اتصال بالانترنت"
},

"contactPage": {
"contactInfoCard": {
"phoneSection": {
"title": "اتصل بنا",
"weAreAvailable": "نحن متاحون على مدار الساعة طوال أيام الأسبوع.",
"weAreAvailable": "نحن متاحون على مدار الساعة طوال أيام الأسبوع",
"phoneNumber": "الهاتف"
},
"emailSection": {
"title": "راسلنا",
"fillOut": "املأ الاستمارة الخاصة بنا وسنتصل بك في غضون 24 ساعة.",
"fillOut": "املأ الاستمارة الخاصة بنا وسنتصل بك في غضون 24 ساعة",
"customersEmail": "بريد العملاء",
"supportEmail": "بريد الدعم"
}
Expand Down Expand Up @@ -516,7 +516,7 @@
},

"toastAlert": {
"accountInfoUpdated": "تم تحديث معلومات الحساب.",
"accountInfoUpdated": "تم تحديث معلومات الحساب",
"messageSent": "شكرًا لرسالتك! سنعود إليك قريبًا",
"subscriptionSuccess": "لقد اشتركت في العروض الحصرية",
"subscriptionFailed": "فشل الاشتراك، يرجى التحقق من اتصال الإنترنت الخاص بك",
Expand Down
5 changes: 4 additions & 1 deletion src/Components/Footer/CustomEmailInput/CustomEmailInput.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cookies from "js-cookie";
import { useState } from "react";
import { useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { useDispatch } from "react-redux";
import { showAlert } from "src/Features/globalSlice";
Expand All @@ -20,6 +20,7 @@ const CustomEmailInput = () => {

const [email, setEmail] = useState("");
const [loading, setLoading] = useState(false);
const emailRef = useRef()

const isWebsiteOnline = useOnlineStatus();
const sendIconDirection = {
Expand All @@ -41,6 +42,7 @@ const CustomEmailInput = () => {
e.preventDefault();
if (loading) return;

emailRef.current.focus()
const emailInput = e.target.querySelector("input");
if (isEmailValid(emailInput)) subscription();
};
Expand Down Expand Up @@ -71,6 +73,7 @@ const CustomEmailInput = () => {
autoComplete="off"
aria-describedby="email-tooltip"
onChange={(e) => setEmail(e.target.value)}
ref={emailRef}
/>

<button aria-label="Send mail" type="submit">
Expand Down
2 changes: 2 additions & 0 deletions src/Components/Shared/MiniComponents/ToolTip.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const ToolTip = ({ content, top, right, bottom, left }) => {
return (
<span
role="tooltip"
aria-hidden="true"
data-is-tooltip="true"
className="toolTip"
style={{ top: top, right: right, bottom: bottom, left: left }}
Expand Down

0 comments on commit 15c3cda

Please sign in to comment.