یک سری از باگ هارو گرفتم‌ | 40

temp
mahdi 2 years ago
parent 2e459a8965
commit 357f6a1c1e
  1. 7
      src/views/Dashboard/layouts/Main/Addresses/index.js
  2. 6
      src/views/DeliveryForm/Address/index.js
  3. 6
      src/views/Favorites/index.js

@ -1,4 +1,4 @@
import React from "react"; import React, { useEffect } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { import {
@ -40,6 +40,11 @@ const ProfileAddress = ({
getList(); getList();
}, []); }, []);
useEffect(() => {
// alert();
window.scrollTo(0, 0);
}, []);
return ( return (
<div <div
className={`flex-1 ${isMobile ? "" : "w-full"} ${ className={`flex-1 ${isMobile ? "" : "w-full"} ${

@ -1,4 +1,4 @@
import React, { useState, useEffect } from "react"; import React, { useEffect } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { userFactor } from "../../../redux/actions"; import { userFactor } from "../../../redux/actions";
@ -141,6 +141,10 @@ function Address({
); );
}; };
useEffect(() => {
window.scrollTo(0, 0);
}, []);
return isMobile ? ( return isMobile ? (
<section className="mt-2 w-full"> <section className="mt-2 w-full">
<strong className="font-bold text-green7B dark:text-white lg:text-tiny"> <strong className="font-bold text-green7B dark:text-white lg:text-tiny">

@ -1,4 +1,4 @@
import React from "react"; import React, { useEffect } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { publicApi, userFavorite } from "../../redux/actions"; import { publicApi, userFavorite } from "../../redux/actions";
@ -20,6 +20,10 @@ const Favorites = ({
getList(); getList();
}, []); }, []);
useEffect(() => {
// alert();
window.scrollTo(0, 0);
}, []);
return ( return (
<div className="flex flex-row flex-wrap"> <div className="flex flex-row flex-wrap">
{bookmarkList.map((bookmark, index) => ( {bookmarkList.map((bookmark, index) => (

Loading…
Cancel
Save