Skip to content

Commit

Permalink
feat(pagination): update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
oasis-cloud committed Nov 8, 2024
1 parent 16b173e commit a27f11a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/packages/pagination/demos/taro/demo5.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useState } from 'react'
import { View } from '@tarojs/components'
import { Pagination } from '@nutui/nutui-react-taro'
import { ArrowLeft, ArrowRight } from '@nutui/icons-react-taro'
import { harmonyAndRn } from '@/utils/platform-taro'

const Demo5 = () => {
const [currentPage4, setCurrentPage4] = useState(1)
Expand All @@ -24,8 +23,8 @@ const Demo5 = () => {
itemSize={5}
onChange={pageChange4}
itemRender={itemRender}
prev={!harmonyAndRn() ? <ArrowLeft /> : null}
next={!harmonyAndRn() ? <ArrowRight /> : null}
prev={<ArrowLeft />}
next={<ArrowRight />}
/>
)
}
Expand Down

0 comments on commit a27f11a

Please sign in to comment.