mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 20:43:02 +00:00
address some eslint
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import React, { useState } from "react";
|
||||
import "./table-select.css";
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
|
@@ -2,7 +2,7 @@ import React from "react";
|
||||
import "@testing-library/jest-dom";
|
||||
import { act } from "react-dom/test-utils";
|
||||
import { render, screen, fireEvent } from "@testing-library/react";
|
||||
import { Provider, useDispatch, useSelector } from "react-redux";
|
||||
import { Provider, useSelector } from "react-redux";
|
||||
import { createStore } from "redux";
|
||||
import { HashRouter, useSearchParams } from "react-router-dom";
|
||||
// eslint-disable-next-line
|
||||
|
@@ -9,7 +9,7 @@ const PaginationFooter = (props) => {
|
||||
return (
|
||||
<div className="pagination-footer">
|
||||
<p>
|
||||
Displaying {offset}-{offset + visible}
|
||||
Displaying {offset}-{offset + visible} {total ? `of ${total}` : ""}
|
||||
<br />
|
||||
{offset >= 1 ? (
|
||||
<button className="btn btn-sm btn-light spaced">
|
||||
@@ -61,10 +61,13 @@ const PaginationFooter = (props) => {
|
||||
|
||||
PaginationFooter.propTypes = {
|
||||
endpoint: PropTypes.string,
|
||||
page: PropTypes.number,
|
||||
offset: PropTypes.number,
|
||||
limit: PropTypes.number,
|
||||
numOffset: PropTypes.number,
|
||||
numElements: PropTypes.number,
|
||||
visible: PropTypes.number,
|
||||
total: PropTypes.number,
|
||||
handleLimit: PropTypes.func,
|
||||
next: PropTypes.func,
|
||||
prev: PropTypes.func,
|
||||
};
|
||||
|
||||
export default PaginationFooter;
|
||||
|
Reference in New Issue
Block a user