Last change
on this file since 527b93f was dbd4834, checked in by Marko <Marko@…>, 2 years ago |
Homepage, login and register components added
|
-
Property mode
set to
100644
|
File size:
655 bytes
|
Rev | Line | |
---|
[dbd4834] | 1 | import * as React from 'react';
|
---|
| 2 | import Pagination from '@mui/material/Pagination';
|
---|
| 3 | import Stack from '@mui/material/Stack';
|
---|
| 4 | import "./PaginationComponent.css"
|
---|
| 5 |
|
---|
| 6 | export class PaginationComponent extends React.Component {
|
---|
| 7 | constructor(props) {
|
---|
| 8 | super(props)
|
---|
| 9 |
|
---|
| 10 | this.state = {
|
---|
| 11 |
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | render() {
|
---|
| 16 | return (
|
---|
| 17 | <div className='pagination-wrapper'>
|
---|
| 18 | <Pagination className='paginationcomponent-pagination' onChange={(event) => this.props.changePageHandler(event.currentTarget.textContent)}
|
---|
| 19 | count={this.props.numberOfPages} color="primary" />
|
---|
| 20 | </div>
|
---|
| 21 | )
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
| 24 |
|
---|
| 25 | export default PaginationComponent
|
---|
| 26 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.