Skip to content

Commit

Permalink
refactor(tab-set): fix eslint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Yorsh committed Oct 23, 2018
1 parent 15216a4 commit 94ecf78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/tabset/rkTabBar.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class RkTabBar extends RkComponent {
scrollToIndex(params) {
const offset = (this.props.componentWidth / this.props.children.length) * params.index;
this.scrollToOffset({ offset });
};
}

/**
* scrolls container to passed offset
Expand All @@ -71,7 +71,7 @@ export class RkTabBar extends RkComponent {
*/
scrollToOffset(params) {
this.containerRef.scrollTo({ x: params.offset, ...params });
};
}

/**
* scrolls container to end
Expand All @@ -80,7 +80,7 @@ export class RkTabBar extends RkComponent {
*/
scrollToEnd(params) {
this.containerRef.scrollToEnd(params);
};
}

setContainerRef = (ref) => {
this.containerRef = ref;
Expand Down

0 comments on commit 94ecf78

Please sign in to comment.