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