Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
megatunger committed Jun 19, 2023
1 parent 099796f commit f1ea497
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 7 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/constants/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
// });
3 changes: 3 additions & 0 deletions src/pages/Content/content.styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#webpack-dev-server-client-overlay {
display:none
}
2 changes: 2 additions & 0 deletions src/pages/Popup/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


body {
width: 500px;
height: 600px;
Expand Down
2 changes: 1 addition & 1 deletion src/services/useClaimWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
15 changes: 10 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f1ea497

Please sign in to comment.