react-nomba-checkout-sdk 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NombaCheckoutModal.tsx +4 -0
package/package.json
CHANGED
|
@@ -105,6 +105,7 @@ class NombaCheckoutModal extends Component<{}, NombaCheckoutModalState> {
|
|
|
105
105
|
title='Nomba checkout'
|
|
106
106
|
onLoad={this.handleIframeLoad}
|
|
107
107
|
id='checkout-sdk-iframe'
|
|
108
|
+
name='react-sdk'
|
|
108
109
|
/>
|
|
109
110
|
</div>
|
|
110
111
|
</div>
|
|
@@ -135,7 +136,10 @@ const modalStyles: { [key: string]: React.CSSProperties } = {
|
|
|
135
136
|
position: 'relative',
|
|
136
137
|
height: '600px',
|
|
137
138
|
maxHeight: '95vh',
|
|
139
|
+
|
|
140
|
+
...(window.innerWidth <= 768 ? { width: '98vw', maxWidth: '98vw' } : {}),
|
|
138
141
|
},
|
|
142
|
+
|
|
139
143
|
header: {
|
|
140
144
|
position: 'relative',
|
|
141
145
|
display: 'flex',
|