-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShopContent.js
74 lines (69 loc) · 1.89 KB
/
ShopContent.js
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import React from "react";
import Select from "react-select";
import {
Row,
Col,
FormGroup,
Input,
Pagination,
PaginationItem,
PaginationLink,
} from "reactstrap";
import { ChevronLeft, ChevronRight} from "react-feather";
import { Link } from "react-router-dom";
import CustomersChart from "./Customers";
import "../../assets/scss/plugins/forms/react-select/_react-select.scss";
let $primary = "#7367F0",
$danger = "#EA5455",
$warning = "#FF9F43",
$primary_light = "#9c8cfc",
$warning_light = "#FFC085",
$danger_light = "#f29292";
class ShopContent extends React.Component {
state = {
inCart: [],
inWishlist: [],
view: "grid-view",
};
render() {
console.log(this.props.donations);
let renderProducts = this.props.donations && this.props.donations.map((person, i) => {
console.log(person)
return (
<Link to={`/support/${person.aidId}`}>
<CustomersChart
primary={$primary}
warning={$warning}
danger={$danger}
primaryLight={$primary_light}
warningLight={$warning_light}
dangerLight={$danger_light}
name={person.patientDetails.fullName}
urgency={person.urgency}
collectedAmount={5000}
remainingAmount={2000}
/>
</Link>
);
});
return (
<div className="shop-content">
<Row>
<Col sm="12" >
<div className="ecommerce-header-items">
<div className="result-toggler w-25 d-flex align-items-center">
<div className="search-results">16285 Results Found</div>
</div>
</div>
</Col>
<Col sm="12">
<div id="ecommerce-products" className={this.state.view}>
{renderProducts}
</div>
</Col>
</Row>
</div>
);
}
}
export default ShopContent;