update 5 files

temp
mahdi 2 years ago
parent 3246e1e894
commit fa0412dad8
  1. 1
      src/redux/reducers/userFactor.js
  2. 2
      src/views/DeliveryForm/index.js
  3. 5
      src/views/ShoppingCart/index.js

@ -8,6 +8,7 @@ const initialState = {
checkEmpty: false,
isVerified: null,
};
export default function userFactor(state = initialState, action) {
let { type, data } = action;
switch (type) {

@ -26,7 +26,7 @@ export const DeliveryForm = ({
}) => {
useEffect(() => {
if (isMobile) {
setHeaderOptions({shown : false});
setHeaderOptions({ shown: false });
}
getFactorInfo({ userId });
getList();

@ -287,6 +287,11 @@ function ShoppingCart({
value={productsLength ? factorInfo?.sumPrice : ""}
type="normal"
/>
<PriceStatus
name="هزینه حمل و نقل"
value={productsLength ? factorInfo?.transportPrice : 0}
type="error"
/>
<PriceStatus
name="میزان تخفیف"
value={productsLength ? factorInfo?.offPrice : ""}

Loading…
Cancel
Save