Skip to content

Instantly share code, notes, and snippets.

@PavelLaptev
Created March 1, 2019 08:34
Show Gist options
  • Save PavelLaptev/f85c46cad60a8fd3923d54e3d618738b to your computer and use it in GitHub Desktop.
Save PavelLaptev/f85c46cad60a8fd3923d54e3d618738b to your computer and use it in GitHub Desktop.
const data = Data({
currentDot: 1
});
export const MovieOfTheDayPageComp: Override = props => {
return {
onChangePage(pageIndex) {
data.currentDot = pageIndex + 1;
}
};
};
export const DotPagination: Override = () => {
return {
activeItem: data.currentDot
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment