You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import React, { useState, useEffect, useCallback } from "react";
|
|
|
|
import ScrollContainer from "react-indiana-drag-scroll";
|
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { Link } from "react-router-dom";
|
|
|
|
import filterIcon from '../../../assets/images/vuesax-linear-filter-tick.svg';
|
|
|
|
import Banners from "../../../components/Banners";
|
|
|
|
|
|
|
|
import { book, publicApi } from "../../../redux/actions";
|
|
|
|
|
|
|
|
const DesktopHome = (
|
|
|
|
|
|
|
|
|
|
|
|
) =>{
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<div className="flex flex-col items-center w-4/5 justify-center">
|
|
|
|
<Banners
|
|
|
|
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({
|
|
|
|
isDark: state.publicApi.isDark,
|
|
|
|
isMobile: state.publicApi.isMobile,
|
|
|
|
books: state.book.list,
|
|
|
|
grades: state.publicApi.grades,
|
|
|
|
gradeFilterBooks: state.book.gradeFilterBooks,
|
|
|
|
selectedGrade: state.book.selectedGrade,
|
|
|
|
});
|
|
|
|
|
|
|
|
const mapDispatchToProps = {
|
|
|
|
getList: book.list,
|
|
|
|
gradeFilter: book.gradeFilter,
|
|
|
|
setHeaderOptions: publicApi.setHeaderOptions,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(DesktopHome);
|
|
|
|
|