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, checkEmpty: false,
isVerified: null, isVerified: null,
}; };
export default function userFactor(state = initialState, action) { export default function userFactor(state = initialState, action) {
let { type, data } = action; let { type, data } = action;
switch (type) { switch (type) {

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

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

Loading…
Cancel
Save