From 0b3ffae0a3609f53828e17962b7788acc9eb2932 Mon Sep 17 00:00:00 2001 From: Ernst Widerberg Date: Thu, 21 Oct 2021 09:13:24 +0200 Subject: Switch semantic-ui to material-ui TODO: Login component --- src/components/List.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/components/List.js') diff --git a/src/components/List.js b/src/components/List.js index d5dcab4..69f2a50 100644 --- a/src/components/List.js +++ b/src/components/List.js @@ -1,5 +1,6 @@ import React from "react"; -import { Button, Pagination } from "semantic-ui-react"; + +import Pagination from "@mui/material/Pagination"; import ObjectComponent from "./ObjectComponent"; import SearchForm from "./SearchForm"; @@ -92,8 +93,9 @@ class List extends React.Component { ); } - setPage(e, { activePage: n }) { - this.setState({ page: n }, () => { + setPage(event, value) { + this.setState({ page: value }, () => { + console.log(this.state); this.getData(); window.scrollTo(0, 0); }); @@ -103,12 +105,7 @@ class List extends React.Component { return (
-
- - - - -
+
@@ -120,9 +117,13 @@ class List extends React.Component {
-- cgit v1.1