panel state error fixed | 20

temp
mahdi 2 years ago
parent 10fd2d4340
commit e2ffd6ff22
  1. 4
      src/views/Address/index.js
  2. 4
      src/views/DeliveryForm/Address/index.js

@ -291,7 +291,7 @@ export const Address = ({
return (
<div
className={`flex flex-col lg:flex-row-reverse px-4 flex-1 lg:pt-0 pb-20 gap-5 lg:divide-x lg:divide-solid lg:divide-gray-200 ${
location.state.panel ? "mt-2" : "pt-0"
location?.state?.panel ? "mt-2" : "pt-0"
}`}
// style={{ minHeight: "calc(100vh - 500px)" }}
>
@ -556,7 +556,7 @@ export const Address = ({
direction="ltr"
maxLength={10}
/>
<div
className={`flex ${
profilePage ? "mt-10" : "lg:hidden"

@ -179,6 +179,4 @@ const mapDispatchToProps = {
export default connect(mapStateToProps, mapDispatchToProps)(Address);
Address.defaultProps = {
edit: "src/assets/icons/eidt.svg",
};
Address.defaultProps = {};

Loading…
Cancel
Save