اطلاح باگ |30

temp
mahdi 2 years ago
parent 2148b9ecae
commit f61feb4a4f
  1. 4
      src/views/Contact/layouts/Ticket.js
  2. 7
      src/views/Dashboard/layouts/Main/MyBooks/index.js
  3. 3
      src/views/Video/components/Season.js
  4. 2
      src/views/Video/index.js

@ -77,6 +77,10 @@ export const Ticket = ({
} }
}, [status]); }, [status]);
useEffect(() => {
window.scrollTo(0, 0);
}, []);
return ( return (
<div className="flex flex-col flex-1"> <div className="flex flex-col flex-1">
{!status && ( {!status && (

@ -1,4 +1,4 @@
import React from "react"; import React, { useEffect } from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
@ -37,6 +37,11 @@ export const MyBooks = ({ books, grades, isMobile }) => {
</li> </li>
); );
}; };
useEffect(() => {
window.scrollTo(0, 0);
}, []);
return ( return (
<div className="flex flex-1 flex-col"> <div className="flex flex-1 flex-col">
<div className="flex flex-wrap gap-4 mb-5 "> <div className="flex flex-wrap gap-4 mb-5 ">

@ -103,6 +103,7 @@ const Season = ({
</div> </div>
); );
}; };
return isMobile ? ( return isMobile ? (
<div <div
className="w-full flex flex-col" className="w-full flex flex-col"
@ -126,7 +127,7 @@ const Season = ({
className={`w-4 transform transition-all ${ className={`w-4 transform transition-all ${
season[0].categoryId === activeSeason ? "rotate-180" : "" season[0].categoryId === activeSeason ? "rotate-180" : ""
}`} }`}
/>{" "} />
</button> </button>
<ul <ul

@ -110,7 +110,7 @@ function Video({
</div> </div>
</div> </div>
) : ( ) : (
<div className="flex flex-col w-11/12 min-h-screen mx-auto pb-20 pt-24 bg-red-300"> <div className="flex flex-col w-11/12 min-h-screen mx-auto pb-20 pt-24">
<header className="w-full flex flex-row gap-12"> <header className="w-full flex flex-row gap-12">
<div className="w-9/12"> <div className="w-9/12">
<Videos videos={book?.fileIds} /> <Videos videos={book?.fileIds} />

Loading…
Cancel
Save