mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-29 07:47:47 +01:00
show photo in an overlay
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user