Skip to content

Commit

Permalink
fix: Pagination icons disappeared (#2982)
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa authored Nov 16, 2023
1 parent e4325a8 commit 0d2b979
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions frontend/web/components/Paging.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import React, { PureComponent } from 'react'
import propTypes from 'prop-types'
import cn from 'classnames'
import { chevronBackOutline, chevronForwardOutline } from 'ionicons/icons'
import { IonIcon } from '@ionic/react'

export default class Paging extends PureComponent {
static displayName = 'Paging'
Expand Down Expand Up @@ -36,9 +38,13 @@ export default class Paging extends PureComponent {
<Row className=' paging py-0' style={isLoading ? { opacity: 0.5 } : {}}>
<Button
disabled={isLoading || !paging.previous}
className='icon btn-paging ion-ios-arrow-back'
className='icon btn-paging mt-1'
onClick={() => prevPage()}
/>
>
<div>
<IonIcon icon={chevronBackOutline} />
</div>
</Button>
{paging.currentPage ? (
<Row>
{!range.includes(0) && !noPages && (
Expand Down Expand Up @@ -124,10 +130,14 @@ export default class Paging extends PureComponent {
)
)}
<Button
className='icon btn-paging ion-ios-arrow-forward'
className='icon btn-paging mt-1'
disabled={isLoading || !paging.next}
onClick={() => nextPage()}
/>
>
<div>
<IonIcon icon={chevronForwardOutline} />
</div>
</Button>
</Row>
)
}
Expand Down

3 comments on commit 0d2b979

@vercel
Copy link

@vercel vercel bot commented on 0d2b979 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app
docs.flagsmith.com
docs.bullet-train.io

@vercel
Copy link

@vercel vercel bot commented on 0d2b979 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 0d2b979 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.