A few fixes.

This commit is contained in:
Dessalines 2020-07-14 11:59:15 -04:00
parent d6fdfe0b6d
commit 2f32d3e6df
3 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@ export class DataTypeSelect extends Component<
this.state = this.emptyState;
}
static getDerivedStateFromProps(props) {
static getDerivedStateFromProps(props: any): DataTypeSelectProps {
return {
type_: props.type_,
};

View File

@ -26,7 +26,7 @@ export class ListingTypeSelect extends Component<
this.state = this.emptyState;
}
static getDerivedStateFromProps(props) {
static getDerivedStateFromProps(props: any): ListingTypeSelectProps {
return {
type_: props.type_,
};

View File

@ -554,12 +554,12 @@ export class Main extends Component<any, MainState> {
}
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);
}