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)}
key={image.src}
width={(image.width / image.height) * height}
defer={
this.gridHeight > this.props.pageBottom
}
defer={this.gridHeight > this.props.pageBottom}
/>
);
});

View File

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