xpay-redirect 0.2.0 → 0.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpay-redirect",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "main": "dist/xpayroute.js",
6
6
  "scripts": {
@@ -9,7 +9,7 @@ function strcmpXPAY(a, b) {
9
9
  return (a < b ? -1 : (a > b ? 1 : 0));
10
10
  };
11
11
 
12
- export default function PayNowBtn({ config }) {
12
+ export function PayNowBtn({ config }) {
13
13
 
14
14
  // for calling only once due to react18 useEffect calls twice
15
15
  const callingOnce = React.useRef(true);
@@ -4,7 +4,7 @@ import FTBName from '../../assets/ai Icon/ai Icon-2.png';
4
4
  import { useMediaQuery } from '@mui/material';
5
5
  import axios from 'axios';
6
6
 
7
- export default function FtbScreenIndex({config}) {
7
+ export function FtbScreenIndex({config}) {
8
8
  // consumer data
9
9
  const { baseurl } = config;
10
10
  // for calling only once (react18 useEffect calls twice)