Skip to content

Commit

Permalink
refactor: less invasive select in pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
awesthouse committed Jun 24, 2024
1 parent 276ed67 commit 5fa81c2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions packages/dm-core-plugins/src/common/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
Button,
EdsProvider,
Icon,
NativeSelect,
Typography,
} from '@equinor/eds-core-react'
import { Button, EdsProvider, Icon, Typography } from '@equinor/eds-core-react'
import { chevron_left, chevron_right } from '@equinor/eds-icons'
import { useMemo } from 'react'
import { Stack } from '..'
Expand Down Expand Up @@ -49,17 +43,20 @@ export function Pagination(props: PaginationProps) {
<Typography variant='label' group='input'>
Rows per page:{' '}
</Typography>
<NativeSelect
<select
id='rowsPerPage'
label=''
value={rowsPerPage}
onChange={(event) => setRowsPerPage(Number(event.target.value))}
style={{ width: '70px' }}
style={{
background: 'none',
border: 'none',
width: '3rem',
}}
>
{paginationSizes.map((amount) => (
<option key={amount}>{amount}</option>
))}
</NativeSelect>
</select>
</Stack>
<Stack spacing={0.5} alignItems='center'>
<Typography variant='meta'>
Expand Down

0 comments on commit 5fa81c2

Please sign in to comment.