+
+ {discount !== '' && (
+
+ )}
+ {soldout && (
+
+ )}
+
+
+
+ {!soldout && (
+
+
+
+
+
+ )}
+
+ {name}
+
+
+ {desc}
+
+
+
+
+
+
+
+
+$
+ {price}
+
+
+ {prevPrice > 0 && (
+
+
+$
+ {prevPrice}
+
+
+ )}
+
+
+ {!soldout && (
+
+
+
+
+
+ )}
+
+
+
+ );
+ }
+}
+
+ProductCard.propTypes = {
+ classes: PropTypes.object.isRequired,
+ discount: PropTypes.string,
+ width: PropTypes.string.isRequired,
+ soldout: PropTypes.bool,
+ thumbnail: PropTypes.string.isRequired,
+ name: PropTypes.string.isRequired,
+ desc: PropTypes.string.isRequired,
+ ratting: PropTypes.number.isRequired,
+ price: PropTypes.number.isRequired,
+ prevPrice: PropTypes.number,
+ list: PropTypes.bool,
+ detailOpen: PropTypes.func,
+ addToCart: PropTypes.func,
+};
+
+ProductCard.defaultProps = {
+ discount: '',
+ soldout: false,
+ prevPrice: 0,
+ list: false,
+ detailOpen: () => (false),
+ addToCart: () => (false),
+};
+
+const ProductCardResponsive = withWidth()(ProductCard);
+export default withStyles(styles)(ProductCardResponsive);
diff --git a/front/odiparpack/app/components/CardPaper/ProfileCard.js b/front/odiparpack/app/components/CardPaper/ProfileCard.js
new file mode 100644
index 0000000..7827941
--- /dev/null
+++ b/front/odiparpack/app/components/CardPaper/ProfileCard.js
@@ -0,0 +1,99 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+import { withStyles } from '@material-ui/core/styles';
+import Type from 'ba-styles/Typography.scss';
+import VerifiedUser from '@material-ui/icons/VerifiedUser';
+import SupervisorAccount from '@material-ui/icons/SupervisorAccount';
+import Favorite from '@material-ui/icons/Favorite';
+import PhotoLibrary from '@material-ui/icons/PhotoLibrary';
+import {
+ Typography,
+ Card,
+ CardMedia,
+ CardContent,
+ CardActions,
+ Button,
+ Avatar,
+ BottomNavigation,
+ BottomNavigationAction,
+ Divider,
+} from '@material-ui/core';
+import styles from './cardStyle-jss';
+
+
+class ProfileCard extends React.Component {
+ state = { expanded: false };
+
+ handleExpandClick = () => {
+ this.setState({ expanded: !this.state.expanded });
+ };
+
+ render() {
+ const {
+ classes,
+ cover,
+ avatar,
+ name,
+ title,
+ connection,
+ isVerified,
+ btnText
+ } = this.props;
+
+ return (
+