This commit is contained in:
2019-12-21 07:01:10 -08:00
parent 3bdcc902bd
commit 5802bb78c2
2 changed files with 3 additions and 5 deletions

View File

@@ -62,9 +62,7 @@ export class Grid extends React.PureComponent<Props, {}> {
onClick={() => this.props.onImageSelected(image)} onClick={() => this.props.onImageSelected(image)}
key={image.src} key={image.src}
width={(image.width / image.height) * height} width={(image.width / image.height) * height}
defer={ defer={this.gridHeight > this.props.pageBottom}
this.gridHeight > this.props.pageBottom
}
/> />
); );
}); });

View File

@@ -10,7 +10,7 @@ export interface Props {
} }
export interface State { export interface State {
isMounted: boolean; isMounted: boolean;
} }
interface SrcSetInfo { interface SrcSetInfo {
@@ -27,7 +27,7 @@ export class Picture extends React.PureComponent<Props, State> {
}; };
componentDidMount() { componentDidMount() {
this.setState({ isMounted: true }); this.setState({ isMounted: true });
} }
render() { render() {