diff --git a/src/short-urls/Paginator.js b/src/short-urls/Paginator.js
index 17223b9a..893e2da8 100644
--- a/src/short-urls/Paginator.js
+++ b/src/short-urls/Paginator.js
@@ -2,6 +2,7 @@ import React from 'react';
import { Link } from 'react-router-dom';
import { Pagination, PaginationItem, PaginationLink } from 'reactstrap';
import PropTypes from 'prop-types';
+import { range } from 'ramda';
const propTypes = {
serverId: PropTypes.string.isRequired,
@@ -18,24 +19,17 @@ export default function Paginator({ paginator = {}, serverId }) {
return null;
}
- const renderPages = () => {
- const pages = [];
-
- for (let i = 1; i <= pagesCount; i++) {
- pages.push(
-
-
- {i}
-
-
- );
- }
-
- return pages;
- };
+ const renderPages = () =>
+ range(1, pagesCount + 1).map((i) => (
+
+
+ {i}
+
+
+ ));
return (