-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewProperty.tsx
More file actions
43 lines (39 loc) · 1.07 KB
/
Copy pathViewProperty.tsx
File metadata and controls
43 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import React from "react";
import { PROPERTY } from "../pages/Home";
interface Props {
property: PROPERTY[];
}
const ViewProperty = ({ property }: Props) => {
return (
<div>
<h1 style={{textAlign:"center", color: "#1c1c3e", fontWeight: "800", fontSize: "100"}}>ALL PROPERTIES</h1>
<table className="table table-secondary">
<thead >
<tr>
<th>Name</th>
<th>Image</th>
<th>Type</th>
<th>Price</th>
<th>Status</th>
<th>OwnerName</th>
</tr>
</thead>
<tbody>
{property.map((prop) => (
<tr key={prop._id}>
<td>{prop.ownerName}</td>
<td>
<img src={prop.image} alt="" width="100px" height="100px" />
</td>
<td>{prop.type}</td>
<td>{prop.price}</td>
<td>{prop.propertyStatus}</td>
<td>{prop.ownerName}</td>
</tr>
))}
</tbody>
</table>
</div>
);
};
export default ViewProperty;