diff --git a/dictionary.js b/dictionary.js
index a73d591..fd29ea3 100644
--- a/dictionary.js
+++ b/dictionary.js
@@ -335,4 +335,4 @@ const items = [
"درخواست شما با موفقیت انجام شد.",
];
-module.exports = items;
\ No newline at end of file
+module.exports = items;
diff --git a/src/Redux/reducers/book.js b/src/Redux/reducers/book.js
index a901796..6e48838 100644
--- a/src/Redux/reducers/book.js
+++ b/src/Redux/reducers/book.js
@@ -9,7 +9,11 @@ const initialState = {
filterResult: [],
subjects: [],
levels: [],
- sortFilters: [window.t("مرتب سازی"), window.t("محبوب ترین"), window.t("جدیدترین")],
+ sortFilters: [
+ window.t("مرتب سازی"),
+ window.t("محبوب ترین"),
+ window.t("جدیدترین"),
+ ],
};
const grades = [
@@ -42,7 +46,7 @@ export default function book(state = initialState, action) {
.sort((a, b) => a - b)
.map((e) => grades[e]);
if (window.innerWidth < 1000) {
- itemsLevel.unshift(window.t(window.t("پایه تحصیلی")));
+ itemsLevel.unshift(window.t("پایه تحصیلی"));
}
return {
...state,
diff --git a/src/Redux/reducers/public.js b/src/Redux/reducers/public.js
index da9bda6..3b317e6 100644
--- a/src/Redux/reducers/public.js
+++ b/src/Redux/reducers/public.js
@@ -52,7 +52,7 @@ export default function publicApi(state = initialState, action) {
.sort((a, b) => a - b)
.map((e) => grades[e])
: [];
- itemsLevel.unshift(window.t(window.t("پایه تحصیلی")));
+ itemsLevel.unshift(window.t("پایه تحصیلی"));
// }
return {
@@ -69,8 +69,9 @@ export default function publicApi(state = initialState, action) {
case "public/filter":
const realList =
state.newProducts.length === 0
- ? state.homeData.filter((item) => item.title === window.t("کتابهای دانوین"))[0]
- .data
+ ? state.homeData.filter(
+ (item) => item.title === window.t("کتابهای دانوین")
+ )[0].data
: state.newProducts;
if (state.newProducts.length === 0) {
state = {
diff --git a/src/views/Auth/Login/Cellphone/index.js b/src/views/Auth/Login/Cellphone/index.js
index d0cf3e4..b9733dd 100644
--- a/src/views/Auth/Login/Cellphone/index.js
+++ b/src/views/Auth/Login/Cellphone/index.js
@@ -48,7 +48,7 @@ export default class Cellphone extends Component {
}
>
09
-
+
@@ -119,7 +119,7 @@ export default class Cellphone extends Component {
}
>
09
-
+
-
- {/*
*/}
-
+
) : null}
diff --git a/src/views/Auth/Profile/Birthdate/index.js b/src/views/Auth/Profile/Birthdate/index.js
index 5c0731c..bd830ba 100644
--- a/src/views/Auth/Profile/Birthdate/index.js
+++ b/src/views/Auth/Profile/Birthdate/index.js
@@ -31,7 +31,7 @@ export default function Birthdate(props) {
@@ -284,7 +284,7 @@ class Profile extends Component {
parent={this}
options={grades}
name="gradeIds"
- label={window.t(window.t("پایه تحصیلی"))}
+ label={window.t("پایه تحصیلی")}
selectedOptions={this.state.gradeIds}
/>
@@ -418,7 +418,7 @@ class Profile extends Component {
) : null}
@@ -481,7 +481,7 @@ class Profile extends Component {
parent={this}
options={grades}
name="gradeIds"
- label={window.t(window.t("پایه تحصیلی"))}
+ label={window.t("پایه تحصیلی")}
selectedOptions={this.state.gradeIds}
/>
) : null}
diff --git a/src/views/Auth/Splash/index.js b/src/views/Auth/Splash/index.js
index 12c8831..a330135 100644
--- a/src/views/Auth/Splash/index.js
+++ b/src/views/Auth/Splash/index.js
@@ -9,16 +9,18 @@ export default function Splash(props) {
<>
{window.innerWidth > 1000 ? (
-
+
در حال بارگیری اطلاعات از سرور
) : null}
{window.innerWidth < 1000 ? (
-
+
-
در حال بارگیری اطلاعات از سرور
+
+ در حال بارگیری اطلاعات از سرور
+
) : null}
>
diff --git a/src/views/ChatList/Search/index.js b/src/views/ChatList/Search/index.js
index 0c1b5f1..c3a582e 100644
--- a/src/views/ChatList/Search/index.js
+++ b/src/views/ChatList/Search/index.js
@@ -17,9 +17,9 @@ export default function Search(props) {
-
+
);
}
diff --git a/src/views/ChatRoom/Body/Input/index.js b/src/views/ChatRoom/Body/Input/index.js
index ce54594..64fcd93 100644
--- a/src/views/ChatRoom/Body/Input/index.js
+++ b/src/views/ChatRoom/Body/Input/index.js
@@ -145,7 +145,7 @@ export default class ChatInputs extends Component {
id="standard-textarea"
label=""
value={message}
- placeholder=window.t("یک پیام بنویسید...")
+ placeholder={window.t("یک پیام بنویسید...")}
rowsMax={4}
onChange={(e) => typeText("text", e.target.value)}
multiline
diff --git a/src/views/ChatRoom/Body/Message/Comment/index.js b/src/views/ChatRoom/Body/Message/Comment/index.js
index 491837a..c4cd2b4 100644
--- a/src/views/ChatRoom/Body/Message/Comment/index.js
+++ b/src/views/ChatRoom/Body/Message/Comment/index.js
@@ -19,7 +19,7 @@ const menu = [
const selfMenu = [
{ text: window.t("باز ارسال"), icon: ForwardIcon, onClick: () => {} },
{ text: window.t("ویرایش"), icon: EditIcon, onClick: () => {} },
- { text: window.t(window.t("حذف")), icon: DeleteIcon, onClick: () => {} },
+ { text: window.t("حذف")), icon: DeleteIcon, onClick: () => {} },
];
export default class Comment extends Component {
state = { messageMenu: null };
diff --git a/src/views/ChatRoom/Body/Message/Normal/index.js b/src/views/ChatRoom/Body/Message/Normal/index.js
index 62b3085..af74ebd 100644
--- a/src/views/ChatRoom/Body/Message/Normal/index.js
+++ b/src/views/ChatRoom/Body/Message/Normal/index.js
@@ -27,7 +27,7 @@ const menu = [
const selfMenu = [
{ text: window.t("باز ارسال"), icon: ForwardIcon, onClick: () => {} },
{ text: window.t("ویرایش"), icon: EditIcon, onClick: () => {} },
- { text: window.t(window.t("حذف")), icon: DeleteIcon, onClick: () => {} },
+ { text: window.t("حذف"), icon: DeleteIcon, onClick: () => {} },
];
export default class NormalMessage extends Component {
state = { messageMenu: null };
diff --git a/src/views/ChatRoom/Info/index.js b/src/views/ChatRoom/Info/index.js
index 1cc3cf5..728bf43 100644
--- a/src/views/ChatRoom/Info/index.js
+++ b/src/views/ChatRoom/Info/index.js
@@ -80,7 +80,9 @@ export default class ChatInfo extends Component {
],
name: window.t("محسن محمدی"),
lastAct: window.t("2 دقیقه پیش آنلاین بوده"),
- bio: window.t("لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنام"),
+ bio: window.t(
+ "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه روزنام"
+ ),
},
};
}
@@ -136,7 +138,7 @@ export default class ChatInfo extends Component {
{user.name}
@@ -243,7 +245,7 @@ export default class ChatInfo extends Component {
{user.name}
diff --git a/src/views/Checkout/index.js b/src/views/Checkout/index.js
index 0719875..ee1ed87 100644
--- a/src/views/Checkout/index.js
+++ b/src/views/Checkout/index.js
@@ -230,7 +230,7 @@ class Cart extends Component {
-
دسترسی سریع
+
{window.t("دسترسی سریع")}
{fastAccess.map((item) => (
-
diff --git a/src/views/Home/HomeHeader/index.js b/src/views/Home/HomeHeader/index.js
index c6dd7c1..e6014ef 100644
--- a/src/views/Home/HomeHeader/index.js
+++ b/src/views/Home/HomeHeader/index.js
@@ -1,6 +1,6 @@
import React, { Component } from "react";
import ChevronLeftIcon from "@material-ui/icons/ChevronLeft";
-import {Link} from 'react-router-dom';
+import { Link } from "react-router-dom";
import "./index.scss";
export default class HomeHeader extends Component {
@@ -12,23 +12,27 @@ export default class HomeHeader extends Component {
height ? "home-header d-flex flex-column" : "home-header d-flex"
}
>
- {
- title ?
-
{title}
-
-
موارد بیشتر
-
+ {title ? (
+
+
{title}
+
+ {window.t("موارد بیشتر")}
+
+
-
: null
- }
+ ) : null}
{data.map((item, i) => (
))}
-
);
}
@@ -36,13 +40,16 @@ export default class HomeHeader extends Component {
const Item = (props) => {
return (
-
+
{moreText}
-
+
diff --git a/src/views/Home/HomeSearch/Select/index.js b/src/views/Home/HomeSearch/Select/index.js
index d5ad865..48061b8 100644
--- a/src/views/Home/HomeSearch/Select/index.js
+++ b/src/views/Home/HomeSearch/Select/index.js
@@ -56,7 +56,9 @@ export default function CustomizedSelects(props) {
filters: {
...parent.state.filters,
[name]:
- e.target.value === window.t(window.t("پایه تحصیلی")) ? [] : [e.target.value],
+ e.target.value === window.t("پایه تحصیلی")
+ ? []
+ : [e.target.value],
},
})
}
diff --git a/src/views/Home/HomeSearch/index.js b/src/views/Home/HomeSearch/index.js
index 3ca6261..459fab0 100644
--- a/src/views/Home/HomeSearch/index.js
+++ b/src/views/Home/HomeSearch/index.js
@@ -28,7 +28,7 @@ class HomeSearch extends Component {
return window.innerWidth > 1000 ? (
- {/*
*/}
+ {/*
*/}
@@ -49,13 +49,13 @@ class HomeSearch extends Component {
-
+
- {data.buttonText || window.t(window.t("ادامه مطلب"))}
+ {data.buttonText || window.t("ادامه مطلب")}
{
className="home-scroll__header--more d-flex align-items-center"
>
بیشتر
-
+
) : null}
@@ -51,7 +51,7 @@ const SimpleHeader = (props) => {
className="mobile-home-scroll__header--more d-flex align-items-center"
>
بیشتر
-
+
) : null} */}
@@ -74,7 +74,7 @@ const TabHeader = (props) => {
className="home-scroll__header--more d-flex align-items-center"
>
بیشتر
-
+
*/}
) : null}
@@ -86,7 +86,7 @@ const TabHeader = (props) => {
{/*
بیشتر
-
+
*/}
) : null}
diff --git a/src/views/Home/HomeStatic/index.js b/src/views/Home/HomeStatic/index.js
index f246cae..b525895 100644
--- a/src/views/Home/HomeStatic/index.js
+++ b/src/views/Home/HomeStatic/index.js
@@ -28,7 +28,7 @@ export default class HomeStatic extends Component {
{title}
- موارد بیشتر
+ {window.t("موارد بیشتر")}
{
) : (
@@ -100,7 +100,7 @@ const Item = (props) => {
>
diff --git a/src/views/Home/Membership/index.js b/src/views/Home/Membership/index.js
index f5f0e8c..b31d516 100644
--- a/src/views/Home/Membership/index.js
+++ b/src/views/Home/Membership/index.js
@@ -17,7 +17,7 @@ class Membership extends Component {
-
+
@@ -35,7 +35,7 @@ class Membership extends Component {
-
+
diff --git a/src/views/Home/Navbar/Laptop/index.js b/src/views/Home/Navbar/Laptop/index.js
index 963272c..cb1c60c 100644
--- a/src/views/Home/Navbar/Laptop/index.js
+++ b/src/views/Home/Navbar/Laptop/index.js
@@ -36,7 +36,7 @@ class LaptopNavbar extends Component {