From 1401b024a1002b218adf76b12af9e06113c6000d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maren=20S=C3=BCwer?= Date: Wed, 28 Nov 2018 08:53:48 +0100 Subject: [PATCH] update page in state for using paginator --- .../components/content/StatePaginator.js | 138 ++++++++++++++++++ .../repos/sources/containers/HistoryView.js | 29 +++- 2 files changed, 159 insertions(+), 8 deletions(-) create mode 100644 scm-ui/src/repos/sources/components/content/StatePaginator.js diff --git a/scm-ui/src/repos/sources/components/content/StatePaginator.js b/scm-ui/src/repos/sources/components/content/StatePaginator.js new file mode 100644 index 0000000000..ceedd5edaf --- /dev/null +++ b/scm-ui/src/repos/sources/components/content/StatePaginator.js @@ -0,0 +1,138 @@ +//@flow +import React from "react"; +import { translate } from "react-i18next"; +import type { PagedCollection } from "@scm-manager/ui-types"; +import { Button } from "@scm-manager/ui-components"; + +type Props = { + collection: PagedCollection, + page: number, + updatePage: number => void, + + // context props + t: string => string +}; + +class StatePaginator extends React.Component { + renderFirstButton() { + return ( +