|
@@ -22,7 +22,7 @@ const ProductSelected = () => {
|
22
|
22
|
if (products.length > 0) {
|
23
|
23
|
|
24
|
24
|
let selectedProducts = products.filter(({ selected }) => selected) || []
|
25
|
|
-
|
|
25
|
+
|
26
|
26
|
//sort
|
27
|
27
|
selectedProducts = selectedProducts.sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt));
|
28
|
28
|
setFilterProducts(selectedProducts)
|
|
@@ -73,40 +73,58 @@ const ProductSelected = () => {
|
73
|
73
|
}}
|
74
|
74
|
/>
|
75
|
75
|
|
76
|
|
- <Button
|
77
|
|
- sx={{
|
78
|
|
- position: "absolute",
|
79
|
|
- top:{
|
80
|
|
- xs:0,
|
81
|
|
- sm:0,
|
82
|
|
- md:10,
|
|
76
|
+ <Button
|
|
77
|
+ sx={{
|
|
78
|
+ position: "absolute",
|
|
79
|
+ top: {
|
|
80
|
+ xs: 0,
|
|
81
|
+ sm: 0,
|
|
82
|
+ md: 10,
|
83
|
83
|
lg: 20
|
84
|
|
- },
|
|
84
|
+ },
|
85
|
85
|
left: {
|
86
|
|
- xs:0,
|
87
|
|
- sm:0,
|
88
|
|
- md:10,
|
|
86
|
+ xs: 0,
|
|
87
|
+ sm: 0,
|
|
88
|
+ md: 10,
|
89
|
89
|
lg: 20
|
90
|
|
- },
|
|
90
|
+ },
|
91
|
91
|
boxShadow: 0,
|
92
|
92
|
fontSize: 10
|
93
|
|
- }}
|
|
93
|
+ }}
|
94
|
94
|
variant="contained"
|
95
|
95
|
>
|
96
|
96
|
NEW
|
97
|
97
|
</Button>
|
98
|
98
|
|
99
|
|
- <Box sx={{ pt: 3, width: "80%" }}>
|
100
|
|
- <Typography variant="body1" sx={{ fontWeight: "400", mb: 1 }}>
|
|
99
|
+ <Box sx={{ pb: 1, pt: 1, width: "90%" }}>
|
|
100
|
+ <Typography variant="body2" sx={{
|
|
101
|
+ fontWeight: "400", fontSize: {
|
|
102
|
+ xs: "0.875rem",
|
|
103
|
+ sm: "0.875rem",
|
|
104
|
+ md: "1rem",
|
|
105
|
+ }
|
|
106
|
+ }}>
|
101
|
107
|
{collection_name}
|
102
|
108
|
</Typography>
|
103
|
|
- <Typography variant="h6" sx={{ fontWeight: "bolder", mb: 1 }}>
|
|
109
|
+ <Typography variant="body2" sx={{
|
|
110
|
+ fontWeight: "bolder", fontSize: {
|
|
111
|
+ xs: "0.875rem",
|
|
112
|
+ sm: "0.875rem",
|
|
113
|
+ md: "1rem",
|
|
114
|
+ }
|
|
115
|
+ }}>
|
104
|
116
|
{title}
|
105
|
117
|
</Typography>
|
106
|
|
- <Typography variant="body1" sx={{ fontWeight: "400" }}>
|
|
118
|
+ <Typography variant="body2" sx={{
|
|
119
|
+ fontWeight: "400", fontSize: {
|
|
120
|
+ xs: "0.875rem",
|
|
121
|
+ sm: "0.875rem",
|
|
122
|
+ md: "1rem",
|
|
123
|
+ }
|
|
124
|
+ }}>
|
107
|
125
|
{`${minPriceCurrency} ${parseFloat(minPrice).toFixed(2)}`}
|
108
|
126
|
</Typography>
|
109
|
|
- <Typography variant="body1" sx={{ mt: 2 }}>
|
|
127
|
+ <Typography variant="body2" sx={{ mt: 2 }}>
|
110
|
128
|
{extra_desc}
|
111
|
129
|
</Typography>
|
112
|
130
|
</Box>
|