import React, { Component } from 'react'; import { Redirect } from 'react-router'; import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom"; import PropTypes from 'prop-types'; import classNames from 'classnames' import Pagination from 'rc-pagination'; import {getImageUrl, toPath} from 'educoder'; import { postPaginationHOC } from './PostPaginationHOC' import PostItem from './PostItem' import ForumsNavTab from './ForumsNavTab' import { queryString, ThemeContext } from 'educoder' class MemoList extends Component { render() { const { match, history, currentPage, memo_count ,memo_list, renderMemoList, onPaginationChange } = this.props let theme = this.context; return (
{!memo_list || memo_list.length === 0 ?

暂时还没有相关数据哦!

: renderMemoList() }
{ !!memo_count && memo_count > 15 &&
onPaginationChange(pageNum, pageSize)} showQuickJumper current={currentPage} total={memo_count} pageSize={15}/>
}
); } } MemoList.contextType = ThemeContext; export default ( MemoList );