summaryrefslogtreecommitdiff
path: root/client/src/components/Card/Card.jsx
diff options
context:
space:
mode:
authorBlaster4385 <[email protected]>2022-08-12 11:23:48 +0530
committerBlaster4385 <[email protected]>2022-08-12 11:26:32 +0530
commit87a343644592e9b425e7fa0805988ad8e7ee8778 (patch)
treeca8811c7d708bbb7f3266b9bc1045ee70219f996 /client/src/components/Card/Card.jsx
parent30a7a079b16e1d17e8cc920d2fb3338f79767432 (diff)
Refactor code and switch to a multi-step form setup
Diffstat (limited to 'client/src/components/Card/Card.jsx')
-rw-r--r--client/src/components/Card/Card.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/components/Card/Card.jsx b/client/src/components/Card/Card.jsx
index 3d66067..9460955 100644
--- a/client/src/components/Card/Card.jsx
+++ b/client/src/components/Card/Card.jsx
@@ -1,9 +1,9 @@
import React from 'react'
import styles from './Card.module.css'
-const Card = ({ title, image }) => {
+const Card = ({ title, image, onClick }) => {
return (
- <div className={styles.card}>
+ <div onClick={ onClick } className={styles.card}>
<img className={styles.card__image} src={image} alt="" />
<h2 className={styles.card__title}>{title}</h2>
</div>