File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import Billing from './Billing.component';
5
5
import OrderDetails from './OrderDetails.component' ;
6
6
import MobileOrderDetails from './MobileOrderDetails.component' ;
7
7
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner.component' ;
8
- //import Payment from './Payment.component';
8
+ // TODO Add more payment methods
9
9
10
10
import { GET_CART } from 'utils/gql/GQL_QUERIES' ;
11
11
import { CHECKOUT_MUTATION } from 'utils/gql/GQL_MUTATIONS' ;
Original file line number Diff line number Diff line change @@ -43,14 +43,15 @@ const SingleProduct = ({ product }) => {
43
43
) : (
44
44
< div className = "container flex flex-wrap items-center pt-4 pb-12 mx-auto " >
45
45
< div className = "grid grid-cols-1 gap-4 mt-16 lg:grid-cols-2 xl:grid-cols-2 md:grid-cols-2 sm:grid-cols-2" >
46
- { image ? (
46
+ { image && (
47
47
< img
48
48
id = "product-image"
49
49
className = "h-auto p-8 transition duration-500 ease-in-out transform xl:p-2 md:p-2 lg:p-2 hover:grow hover:shadow-lg hover:scale-105"
50
50
alt = { name }
51
51
src = { image . sourceUrl }
52
52
/>
53
- ) : (
53
+ ) }
54
+ { ! image && (
54
55
< img
55
56
id = "product-image"
56
57
className = "h-auto p-8 transition duration-500 ease-in-out transform xl:p-2 md:p-2 lg:p-2 hover:grow hover:shadow-lg hover:scale-105"
You can’t perform that action at this time.
0 commit comments