diff --git a/package.json b/package.json index 50df075..52a64d7 100755 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@ant-design/icons": "^5.1.4", - "@elusiv/sdk": "^0.1.12", + "@elusiv/sdk": "^0.1.13", "@noble/ed25519": "^2.0.0", "@solana/wallet-adapter-base": "^0.9.22", "@solana/wallet-adapter-react": "^0.15.32", @@ -37,6 +37,7 @@ "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", "date-fns": "^2.30.0", + "dayjs": "^1.11.8", "https-browserify": "^1.0.0", "localforage": "^1.10.0", "lodash": "^4.17.21", @@ -47,6 +48,7 @@ "react": "^18.2.0", "react-countup": "^6.4.2", "react-dom": "^18.2.0", + "react-error-overlay": "^6.0.11", "react-query": "^3.39.3", "react-router-dom": "^6.12.1", "sort-by": "^1.2.0", diff --git a/src/constants/axios.ts b/src/constants/axios.ts index 8355aa5..623df16 100644 --- a/src/constants/axios.ts +++ b/src/constants/axios.ts @@ -3,3 +3,6 @@ import axios from 'axios'; export const axiosInstance = axios.create({ baseURL: 'https://api-pwe.maius.fun/api', }); +// export const axiosInstance = axios.create({ +// baseURL: 'http://0.0.0.0:3008/api', +// }); diff --git a/src/pages/Content/content.styles.css b/src/pages/Content/content.styles.css index e69de29..7fce54b 100644 --- a/src/pages/Content/content.styles.css +++ b/src/pages/Content/content.styles.css @@ -0,0 +1,3 @@ +#webpack-dev-server-client-overlay { + display:none +} diff --git a/src/pages/Popup/index.css b/src/pages/Popup/index.css index 911e113..47cb54d 100644 --- a/src/pages/Popup/index.css +++ b/src/pages/Popup/index.css @@ -1,3 +1,5 @@ + + body { width: 500px; height: 600px; diff --git a/src/services/useClaimWallet.ts b/src/services/useClaimWallet.ts index bb9bc7d..fd5116c 100644 --- a/src/services/useClaimWallet.ts +++ b/src/services/useClaimWallet.ts @@ -22,7 +22,7 @@ function useClaimWallet(keypair: Keypair) { return useMutation(async () => { const seed = nacl.sign(encoder.encode(SEED_MESSAGE), keypair?.secretKey); return Promise.all( - ['USDC'].map(async (token) => { + ['LAMPORTS'].map(async (token) => { notification.warning({ message: `Claim process for: ${publicKey}`, description: `Start with ${token}. Please do not close extension.`, diff --git a/webpack.config.js b/webpack.config.js index 4fd54f8..80a2206 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -234,6 +234,7 @@ var options = { if (env.NODE_ENV === 'development') { options.devtool = 'cheap-module-source-map'; } else { + options.devtool = 'cheap-module-source-map'; options.optimization = { minimize: true, minimizer: [ diff --git a/yarn.lock b/yarn.lock index 32c6f5d..69d2035 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1276,10 +1276,10 @@ wasmcurves "0.2.0" web-worker "^1.2.0" -"@elusiv/sdk@^0.1.12": - version "0.1.12" - resolved "https://registry.npmjs.org/@elusiv/sdk/-/sdk-0.1.12.tgz" - integrity sha512-jQ8Z1rOPtZu5WJg+k8V8EN2hwnsq/8iTXvTADxx4F3FnLXy2fmlY/bMyITu8mjIQfSwcBtY/ch+o2R4B2ErI0Q== +"@elusiv/sdk@^0.1.13": + version "0.1.13" + resolved "https://registry.yarnpkg.com/@elusiv/sdk/-/sdk-0.1.13.tgz#f056d8ae30930816be7d8f032caa9fb70b2f1e5c" + integrity sha512-yKRpOyxQUDEPBYZuIoCoF8DpYgwDhCQzp3eqQFdZ+knOARxoUPQ3vrAVaCmqk+QYsB6iGiu34bwQ+nSN5CAqzw== dependencies: "@dao-xyz/borsh" "^5.1.3" "@elusiv/ffjavascript" "^0.2.57" @@ -5101,7 +5101,7 @@ date-fns@^2.30.0: dependencies: "@babel/runtime" "^7.21.0" -dayjs@^1.11.1: +dayjs@^1.11.1, dayjs@^1.11.8: version "1.11.8" resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.8.tgz" integrity sha512-LcgxzFoWMEPO7ggRv1Y2N31hUf2R0Vj7fuy/m+Bg1K8rr+KAs1AEy4y9jd5DXe8pbHgX+srkHNS7TH6Q6ZhYeQ== @@ -8499,6 +8499,11 @@ react-dom@^18.2.0: loose-envify "^1.1.0" scheduler "^0.23.0" +react-error-overlay@^6.0.11: + version "6.0.11" + resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.11.tgz#92835de5841c5cf08ba00ddd2d677b6d17ff9adb" + integrity sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg== + react-is@^16.12.0, react-is@^16.13.1: version "16.13.1" resolved "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz"