Fixed minor issues

This commit is contained in:
Philipp Czora
2018-07-27 11:52:08 +02:00
parent 7bd03ed8b5
commit e5f7621bad

View File

@@ -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)}
/> />