From 9993d1f94f3ff75c0cd36225470afc670441c909 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Sat, 9 Jul 2022 16:59:21 +0430 Subject: [PATCH] update src/views/Address/index.js, Main.js and Pagination.js --- src/views/Address/index.js | 50 ++++++++++--------- src/views/Products/layouts/Desktop/Main.js | 6 ++- .../Products/layouts/Desktop/Pagination.js | 4 +- 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/src/views/Address/index.js b/src/views/Address/index.js index 5fcc06b..c6ed856 100644 --- a/src/views/Address/index.js +++ b/src/views/Address/index.js @@ -301,7 +301,7 @@ export const Address = ({ return (
@@ -410,7 +410,7 @@ export const Address = ({ )} /> -
+
-
+
-
+
onInput.numberOnly(val)} - name="postalCode" - value={ - profilePage - ? profileFields.postalCode || user.postalCode - : addressFields?.postalCode - } - onChange={(name, value) => - profilePage - ? setProfileFields({ ...profileFields, postalCode: value }) - : onChange(name, value) - } - align="text-right" - direction="ltr" - maxLength={10} - /> +
+ onInput.numberOnly(val)} + name="postalCode" + value={ + profilePage + ? profileFields.postalCode || user.postalCode + : addressFields?.postalCode + } + onChange={(name, value) => + profilePage + ? setProfileFields({ ...profileFields, postalCode: value }) + : onChange(name, value) + } + align="text-right" + direction="ltr" + maxLength={10} + /> +
+
+
{pages.map((e) => (
setPage(e)} > diff --git a/src/views/Products/layouts/Desktop/Pagination.js b/src/views/Products/layouts/Desktop/Pagination.js index 9d7495c..873bdc0 100644 --- a/src/views/Products/layouts/Desktop/Pagination.js +++ b/src/views/Products/layouts/Desktop/Pagination.js @@ -13,9 +13,9 @@ const Pagination = ({ postsPerPage, totalPosts, paginate }) => { {pageNumbers.map((number) => (
  • -

    paginate(number)} className=""> +

    paginate(number)} className="text-white"> {number}