show photo in an overlay

This commit is contained in:
2020-10-16 15:47:27 +00:00
committed by Stepan Usatiuk
parent c878d08613
commit 537587b052
6 changed files with 96 additions and 26 deletions

View File

@@ -20,6 +20,7 @@ export interface IPhotoCardComponentProps extends RouteComponentProps {
deletePhoto: (photo: IPhotoReqJSON) => void;
cancelDelete: (photo: IPhotoReqJSON) => void;
onClick: () => void;
}
@ContextMenuTarget
@@ -48,9 +49,7 @@ export class PhotoCardComponent extends React.PureComponent<
<Card
className="photoCard"
interactive={true}
onClick={() =>
this.props.history.push(`/photos/${this.props.photo.id}`)
}
onClick={() => this.props.onClick()}
>
{fileExists ? (
<img