♻️(react) make Pagination to use new Input

The Pagination component was not using the label of new Input.
This commit is contained in:
Nathan Vasse
2023-04-14 16:39:21 +02:00
committed by NathanVss
parent feea284ec8
commit 26be159c91
3 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---
make Pagination use new Input

View File

@@ -15,5 +15,9 @@
display: flex;
align-items: center;
gap: 0.5rem;
.c__field--default {
width: 100px;
}
}
}

View File

@@ -146,9 +146,6 @@ export const Pagination = ({
/>
</div>
<div className="c__pagination__goto">
<div className="fs-m clr-greyscale-700">
{t("components.pagination.goto_label")}
</div>
<form
onSubmit={(e) => {
e.preventDefault();
@@ -157,6 +154,7 @@ export const Pagination = ({
>
<Input
type="number"
label={t("components.pagination.goto_label")}
aria-label={t("components.pagination.goto_label_aria")}
size={2}
value={gotoValue}