|
@@ -3,7 +3,7 @@ import Grid from '@mui/material/Grid2';
|
3
|
3
|
import { Box, Button, TextField, InputAdornment, Typography, Card, CardContent, CardMedia } from '@mui/material';
|
4
|
4
|
import { useSelector } from 'react-redux';
|
5
|
5
|
|
6
|
|
-const SearchProduct = ({onClose}) => {
|
|
6
|
+const SearchProduct = ({ onClose }) => {
|
7
|
7
|
|
8
|
8
|
const products = useSelector((state) => state.products.products.data)
|
9
|
9
|
const [searchedProducts, setSearchedProducts] = useState([]);
|
|
@@ -108,9 +108,9 @@ const SearchProduct = ({onClose}) => {
|
108
|
108
|
borderBottom: "1px solid rgba(0,0,0,0.2)",
|
109
|
109
|
transition: "all 0.3s ease-in-out",
|
110
|
110
|
":hover": {
|
111
|
|
- backgroundColor: "#95AAC5"
|
|
111
|
+ backgroundColor: "#95AAC5"
|
112
|
112
|
}
|
113
|
|
- }}
|
|
113
|
+ }}
|
114
|
114
|
onClick={() => {
|
115
|
115
|
window.location.href = `/products/${product?.handle}`
|
116
|
116
|
}}
|
|
@@ -121,8 +121,32 @@ const SearchProduct = ({onClose}) => {
|
121
|
121
|
image={product?.images[0]?.url}
|
122
|
122
|
alt={product?.title}
|
123
|
123
|
/>
|
124
|
|
- <CardContent sx={{ flex: '1 0 auto' }}>
|
125
|
|
- <Typography variant="h5">{product?.title}</Typography>
|
|
124
|
+ <CardContent>
|
|
125
|
+ <Typography variant="body2" sx={{
|
|
126
|
+ fontWeight: "100", fontSize: {
|
|
127
|
+ xs: "0.875rem",
|
|
128
|
+ sm: "0.875rem",
|
|
129
|
+ md: "1.1rem",
|
|
130
|
+ }
|
|
131
|
+ }}>
|
|
132
|
+ {`${product?.collections[0]?.title}`}
|
|
133
|
+ </Typography>
|
|
134
|
+ <Typography variant="body2" sx={{
|
|
135
|
+ fontWeight: "400", fontSize: {
|
|
136
|
+ xs: "0.875rem",
|
|
137
|
+ sm: "0.875rem",
|
|
138
|
+ md: "1.1rem",
|
|
139
|
+ },
|
|
140
|
+ }}>{product?.title}</Typography>
|
|
141
|
+ <Typography variant="body2" sx={{
|
|
142
|
+ fontWeight: "100", fontSize: {
|
|
143
|
+ xs: "0.875rem",
|
|
144
|
+ sm: "0.875rem",
|
|
145
|
+ md: "1.1rem",
|
|
146
|
+ }
|
|
147
|
+ }}>
|
|
148
|
+ {`${product?.minVariantPrice?.currencyCode} ${parseFloat(product?.minVariantPrice?.amount).toFixed(2)}`}
|
|
149
|
+ </Typography>
|
126
|
150
|
</CardContent>
|
127
|
151
|
</Card>
|
128
|
152
|
</Grid>
|