mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
0ca4f707b6
commit
39446e1d3e
1 changed files with 0 additions and 5 deletions
|
|
@ -43,7 +43,6 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
|
|||
|
||||
componentDidMount() {
|
||||
this.updatePageSize();
|
||||
window.addEventListener("resize", this.updatePageSize);
|
||||
fetch("https://filterlists.com/api/v1/lists")
|
||||
.then(response => response.json() as Promise<IListDto[]>)
|
||||
.then(data => {
|
||||
|
|
@ -62,10 +61,6 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
|
|||
});
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener("resize", this.updatePageSize);
|
||||
}
|
||||
|
||||
updatePageSize() {
|
||||
this.setState({
|
||||
pageSize: Math.floor((window.innerHeight - 361) / 52)
|
||||
|
|
|
|||
Loading…
Reference in a new issue