this.state = this.emptyState;
}
- static getDerivedStateFromProps(props) {
+ static getDerivedStateFromProps(props: any): DataTypeSelectProps {
return {
type_: props.type_,
};
this.state = this.emptyState;
}
- static getDerivedStateFromProps(props) {
+ static getDerivedStateFromProps(props: any): ListingTypeSelectProps {
return {
type_: props.type_,
};
}
nextPage(i: Main) {
- i.updateUrl({ page: this.state.page + 1 });
+ i.updateUrl({ page: i.state.page + 1 });
window.scrollTo(0, 0);
}
prevPage(i: Main) {
- i.updateUrl({ page: this.state.page - 1 });
+ i.updateUrl({ page: i.state.page - 1 });
window.scrollTo(0, 0);
}