fix: Select pagination and buttons (#1521)
This commit is contained in:
1 parent
2bf5486112
commit
88846e5c70
3 files changed
+32
-11
No files matched your search
@@ -4,6 +4,7 @@ import {
|
||||
ButtonGroup,
|
||||
Button,
|
||||
IconButton,
|
||||
Icon,
|
||||
} from '../../../components/';
|
||||
|
||||
const StudyListPagination = props => {
|
||||
@@ -19,14 +20,24 @@ const StudyListPagination = props => {
|
||||
<div className="container m-auto relative px-8">
|
||||
<div className="flex justify-between">
|
||||
<div className="flex items-center">
|
||||
<select
|
||||
defaultValue="25"
|
||||
className="bg-black text-white border border-custom-darkSlateBlue text-base h-8 mr-3 focus:outline-none"
|
||||
>
|
||||
<option value="25">25</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
</select>
|
||||
<div className="relative mr-3">
|
||||
<select
|
||||
defaultValue="25"
|
||||
className="block appearance-none w-full bg-transparent border border-custom-darkSlateBlue text-white text-base px-2 pr-4 rounded leading-tight focus:outline-none"
|
||||
style={{ height: 28 }}
|
||||
>
|
||||
<option value="25">25</option>
|
||||
<option value="50">50</option>
|
||||
<option value="100">100</option>
|
||||
</select>
|
||||
<div className="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2">
|
||||
<Icon
|
||||
name="arrow-down"
|
||||
className="text-white"
|
||||
style={{ width: 6 }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<Typography className="text-base opacity-60">
|
||||
Results per page
|
||||
</Typography>
|
||||
@@ -39,7 +50,8 @@ const StudyListPagination = props => {
|
||||
<ButtonGroup color="primary">
|
||||
<IconButton
|
||||
size="small"
|
||||
className="border-custom-darkSlateBlue px-4"
|
||||
className="border-custom-darkSlateBlue px-4 py-2 text-base"
|
||||
style={{ padding: '3px 12px', minWidth: 0 }}
|
||||
color="white"
|
||||
onClick={() => navigateToPage(1)}
|
||||
>
|
||||
@@ -47,13 +59,15 @@ const StudyListPagination = props => {
|
||||
</IconButton>
|
||||
<Button
|
||||
size="small"
|
||||
className="border-custom-darkSlateBlue"
|
||||
className="border-custom-darkSlateBlue py-2 text-base"
|
||||
style={{ padding: '3px 8px', minWidth: 0 }}
|
||||
color="white"
|
||||
onClick={() => navigateToPage(currentPage - 1)}
|
||||
>{`< Previous`}</Button>
|
||||
<Button
|
||||
size="small"
|
||||
className="border-custom-darkSlateBlue"
|
||||
className="border-custom-darkSlateBlue py-2 text-base"
|
||||
style={{ padding: '3px 20px', minWidth: 0 }}
|
||||
color="white"
|
||||
onClick={() => navigateToPage(currentPage + 1)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user