diff --git a/public/en.js b/public/en.js index 9069d6a..28fd626 100644 --- a/public/en.js +++ b/public/en.js @@ -303,6 +303,7 @@ const en = { تعداد: "Number", محصول: "the product", جستجو: "Search", + حذف: "Delete", ارسال: "submit", خاموش: "Off", بیشتر: "More", diff --git a/src/App.css b/src/App.css index ba09b81..018362d 100644 --- a/src/App.css +++ b/src/App.css @@ -7,7 +7,7 @@ direction: ltr; } -.left: { +.left { text-align: left !important; } @@ -42,4 +42,4 @@ @font-face { font-family: numeralUltraLight; src: url(assets/IRANSans//IRANSans_UltraLight.ttf); -} \ No newline at end of file +} diff --git a/src/AppRouter.js b/src/AppRouter.js index e212106..df4cdef 100644 --- a/src/AppRouter.js +++ b/src/AppRouter.js @@ -288,7 +288,8 @@ class AppRouter extends Component { )} - {status ? ( + + {/* {status ? ( ) : ( - )} + )} */} {status ? ( diff --git a/src/views/Auth/Profile/Birthdate/index.js b/src/views/Auth/Profile/Birthdate/index.js index 4ba8dac..4d571cb 100644 --- a/src/views/Auth/Profile/Birthdate/index.js +++ b/src/views/Auth/Profile/Birthdate/index.js @@ -3,13 +3,14 @@ import onInput from "~/util/onInput"; import Input from "../Input/index"; import "./index.scss"; import moment from "jalali-moment"; + export default function Birthdate(props) { const { defaultValue, parent, name } = props; let momentDate = moment(defaultValue[name]); - let isvalid = momentDate.isValid(); - const day = isvalid ? momentDate.format("jDD") : null, - month = isvalid ? momentDate.format("jMM") : null, - year = isvalid ? momentDate.format("jYYYY") : null; + let isvalid = momentDate?.isValid(); + const day = isvalid ? momentDate?.format("jDD") : null, + month = isvalid ? momentDate?.format("jMM") : null, + year = isvalid ? momentDate?.format("jYYYY") : null; const [state, setState] = useState({ day, month, year }); const onChange = (_name, value) => { let _state = { ...state, [_name]: value }; @@ -18,7 +19,11 @@ export default function Birthdate(props) { parent.onChange( name, moment - .from(`${_state.year}/${_state.month}/${_state.day}`, "fa", "YYYY/M/D") + .from( + `${_state?.year}/${_state?.month}/${_state?.day}`, + "fa", + "YYYY/M/D" + ) .locale("en") ); }; diff --git a/src/views/Auth/index.js b/src/views/Auth/index.js index 004dc47..9b1b203 100644 --- a/src/views/Auth/index.js +++ b/src/views/Auth/index.js @@ -15,7 +15,7 @@ export default class Auth extends Component { return (
{this.state.page === "login" ? : null} - {this.state.page === "profile" ? : null} + {/* {this.state.page === "profile" ? : null} */}
); } diff --git a/src/views/Cart/Table/index.js b/src/views/Cart/Table/index.js index 5a9c720..3ce1e58 100644 --- a/src/views/Cart/Table/index.js +++ b/src/views/Cart/Table/index.js @@ -197,7 +197,11 @@ const Item = (props) => { src={`https://dnvn.ir/api/v1/file/${data.product.book.fileIds}`} alt={data.product.book.name} /> -
+
{window.t("نسخه") + ` ${ @@ -215,7 +219,13 @@ const Item = (props) => { window.t("کد فعالسازی محتوای الکترونیک")} {route !== "callback" ? ( -
+
, toast: "", diff --git a/src/views/Product/index.js b/src/views/Product/index.js index 5da27ea..608b25c 100644 --- a/src/views/Product/index.js +++ b/src/views/Product/index.js @@ -224,7 +224,11 @@ class Product extends Component { <>
-
+
{info.name} this.handleProductSearch(e.target.value)} /> diff --git a/src/views/Products/index.scss b/src/views/Products/index.scss index d0efd95..57fdf20 100644 --- a/src/views/Products/index.scss +++ b/src/views/Products/index.scss @@ -1,3 +1,20 @@ +.ltr { + .mobile-products { + * { + direction: ltr; + } + &__search { + input { + padding: 5px 35px 5px 5px; + } + img { + left: auto; + right: 10px; + } + } + } +} + .products { width: 100vw; max-width: 1250px;