Last change
on this file since f08e256 was d7b7f00, checked in by Gorazd Biskoski <gorazdbiskoskii@…>, 4 weeks ago |
Add project
|
-
Property mode
set to
100644
|
File size:
690 bytes
|
Rev | Line | |
---|
[d7b7f00] | 1 | import styles from "../../css/AdminPanelCss/admin-style.module.css";
|
---|
| 2 |
|
---|
| 3 | const AdminReviewCard = ({ data, onClick }) => {
|
---|
| 4 | const { userName, userSurname, recipeName, rating } = data;
|
---|
| 5 |
|
---|
| 6 | return (
|
---|
| 7 | <div className={styles.card} onClick={onClick}>
|
---|
| 8 | <div className={styles.cardContent}>
|
---|
| 9 | <h3 className={styles.cardTitle}>
|
---|
| 10 | {userName} {userSurname}
|
---|
| 11 | </h3>
|
---|
| 12 | <p>
|
---|
| 13 | <strong>Recipe:</strong> {recipeName}
|
---|
| 14 | </p>
|
---|
| 15 | <p>
|
---|
| 16 | <strong>Rating:</strong> {rating}
|
---|
| 17 | </p>
|
---|
| 18 | </div>
|
---|
| 19 | </div>
|
---|
| 20 | );
|
---|
| 21 | };
|
---|
| 22 |
|
---|
| 23 | export default AdminReviewCard;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.