diff options
author | rohan09-raj <[email protected]> | 2022-08-25 11:52:33 +0530 |
---|---|---|
committer | rohan09-raj <[email protected]> | 2022-08-25 11:55:12 +0530 |
commit | 54a27fb52551069fa6d40c6f5941c5d49c0f0506 (patch) | |
tree | 8aff7da60822a847ea081c981da904880d6fb807 /admin/src/components/Card/Card.jsx | |
parent | 772fc663fd31bc247dcc7da31090234b5b89f155 (diff) |
admin UI improvement and back button added
Diffstat (limited to 'admin/src/components/Card/Card.jsx')
-rw-r--r-- | admin/src/components/Card/Card.jsx | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/admin/src/components/Card/Card.jsx b/admin/src/components/Card/Card.jsx index 9460955..d57607b 100644 --- a/admin/src/components/Card/Card.jsx +++ b/admin/src/components/Card/Card.jsx @@ -1,13 +1,19 @@ -import React from 'react' -import styles from './Card.module.css' +import React from 'react'; +import styles from './Card.module.css'; -const Card = ({ title, image, onClick }) => { +const Card = ({title, image, onClick}) => { return ( - <div onClick={ onClick } className={styles.card}> - <img className={styles.card__image} src={image} alt="" /> + <div onClick={onClick} className={styles.card}> + <img + className={styles.card__image} + src={image} + alt='' + height='200px' + width='200px' + /> <h2 className={styles.card__title}>{title}</h2> </div> - ) -} + ); +}; -export default Card +export default Card; |