prettier
This commit is contained in:
@@ -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
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user