Skip to content
Permalink
5e979ec20c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
36 lines (30 sloc) 850 Bytes
import React from 'react';
import { Card } from 'antd';
import PostIcon from './dogicon';
import NavImage from './navimage'
const { Meta } = Card;
class DogCard extends React.Component {
constructor(props) {
super(props);
this.handleNav = this.handleNav.bind(this);
}
handleNav() {
console.log(`clicked post ${this.props.id}`);
}
render() {
const dogID = this.props.id;
return (
<Card
style={{ width: 320 }}
cover={<NavImage img alt="test" src={this.props.imgURL} to={`/dog/${dogID}`}/>}
hoverable={true}
actions={[
<PostIcon type="heart" selected={this.props.heart}/>,
<PostIcon type="edit" selected={this.props.edit}/>
]}>
<Meta title={this.props.Name} description={this.props.about} />
</Card>
);
}
}
export default DogCard;