mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
Fixed minor issues
This commit is contained in:
@@ -26,15 +26,17 @@ class Paginator extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderPreviousButton() {
|
renderPreviousButton() {
|
||||||
|
const { t } = this.props;
|
||||||
return this.renderButton(
|
return this.renderButton(
|
||||||
"pagination-previous",
|
"pagination-previous",
|
||||||
"paginator.previous",
|
t("paginator.previous"),
|
||||||
"prev"
|
"prev"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
renderNextButton() {
|
renderNextButton() {
|
||||||
return this.renderButton("pagination-next", "paginator.next", "next");
|
const { t } = this.props;
|
||||||
|
return this.renderButton("pagination-next", t("paginator.next"), "next");
|
||||||
}
|
}
|
||||||
|
|
||||||
renderLastButton() {
|
renderLastButton() {
|
||||||
@@ -47,11 +49,10 @@ class Paginator extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderButton(className: string, label: string, linkType: string) {
|
renderButton(className: string, label: string, linkType: string) {
|
||||||
const { t } = this.props;
|
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
className={className}
|
className={className}
|
||||||
label={t(label)}
|
label={label}
|
||||||
disabled={this.isLinkUnavailable(linkType)}
|
disabled={this.isLinkUnavailable(linkType)}
|
||||||
action={this.createAction(linkType)}
|
action={this.createAction(linkType)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user