big picture

This commit is contained in:
2018-12-27 16:55:40 -08:00
parent 9c052aebd2
commit c4704a920b
5 changed files with 114 additions and 13 deletions

View File

@@ -6,7 +6,6 @@ import * as React from "react";
export interface Props {
images: Model.Images;
onImageSelected: (key: string) => void;
selectedImage: string | null;
width: number;
}
@@ -52,7 +51,6 @@ export class Grid extends React.PureComponent<Props, {}> {
return <Picture
image={image}
onClick={() => this.props.onImageSelected(key)}
selected={this.props.selectedImage === key}
src={key}
key={key}
width={image.width/image.height * scale}