diff --git a/.babelrc b/.babelrc index b9f6075ff..836f0f902 100644 --- a/.babelrc +++ b/.babelrc @@ -1,29 +1,12 @@ { - "presets": [ + "presets": ["next/babel"], + "plugins": [ [ - "@babel/preset-env", + "styled-components", { - "modules": false, - "useBuiltIns": "entry", - "corejs": 3 + "ssr": true, + "displayName": true } - ], - "@babel/preset-react" - ], - "plugins": [ - ["styled-components", { "displayName": true }] - ], - "env": { - "test": { - "presets": [ - [ - "@babel/preset-env", - { - "modules": "commonjs", - "targets": { "node": "current" } - } - ] - ] - } - } + ] + ] } diff --git a/.gitignore b/.gitignore index 26fc743ef..3b84be0da 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ yarn-error.log* # ide .vscode - +tsconfig.tsbuildinfo diff --git a/next-env.d.ts b/next-env.d.ts new file mode 100644 index 000000000..4f11a03dc --- /dev/null +++ b/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/next.config.js b/next.config.js new file mode 100644 index 000000000..487140202 --- /dev/null +++ b/next.config.js @@ -0,0 +1,77 @@ + +const path = require('path') +const setupAliases = require('./webpack/setup-aliases') +const setupFallbacks = require('./webpack/setup-fallbacks') +const setupAdditionalPlugins = require('./webpack/setup-additional-plugins') + + +// const withSass = require('@zeit/next-sass') +const withImages = require('next-images') + + +const internalNodeModulesRegExp = /use-wallet(?!.*node_modules)/; +const externalNodeModulesRegExp = /node_modules(?!\/use-wallet(?!.*node_modules))/; + + +/** + * @type {import('next').NextConfig} + */ +const nextConfig = { + distDir: 'build', + + webpack: function includeExtraPlugins(config, { webpack, buildId, dev, isServer, defaultLoaders }) { + setupAliases(config) + + setupFallbacks(config) + + setupAdditionalPlugins(config, webpack) + + config.module.rules.push({ + test: /\.(png|svg|jpg|jpeg|gif)$/i, + type: 'asset/resource', + include: [path.resolve(__dirname,'node_modules/use-wallet/esm'),path.resolve(__dirname,'node_modules/use-wallet/dist/cjs'),path.resolve(__dirname,'public')] + }) + + // config.externals = config.externals.map(external => { + + // if (typeof external !== "function") return external + // return ({ctx, req}, cb) => (internalNodeModulesRegExp.test(req) ? cb() : external(ctx, req, cb)) + // }); + + // config.module.rules.push({ + // test: /\.(png|jpe?g|gif|webp)$/i, + // use: [ + // { + // loader: 'url-loader', + // options: { + // outputPath: 'images/', + // publicPath: '/_next/', + // name: dev ? '[name]-[hash].[ext]' : '[hash].[ext]', + // limit: 4000, + // }, + // }, + // ], + // }); + + return config + }, + +// webpackDevMiddleware: config => { +// const ignored = [ config.watchOptions.ignored[ 0 ], externalNodeModulesRegExp ] +// config.watchOptions.ignored = ignored +// return config +// }, + + async redirects() { + return [ + { + source: '/', + destination: '/home', + permanent: true, + }, + ] + }, +} + +module.exports = nextConfig +// module.exports = withImages(nextConfig) diff --git a/package.json b/package.json index 85b6ba28e..04af8df5e 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,11 @@ "version": "0.1.0", "private": true, "scripts": { - "start": "yarn run check-env && yarn run sync-assets && react-app-rewired start", - "build": "yarn run sync-assets && react-app-rewired build", + "dev": "yarn sync-assets && next dev", + "build": "yarn sync-assets && next build", + "start": "yarn sync-assets && next start", "lint": "eslint ./src", + "typecheck": "tsc -p ./tsconfig.json", "sync-assets": "yarn copy-aragon-ui-assets ./public", "bundlewatch": "bundlewatch", "prettier-ai": "prettier --write 'src/**/*.{ts,tsx,js}' --loglevel=error --ignore-path .prettier-imports-ignore", @@ -34,6 +36,8 @@ "fork-bn.js": "^4.11.8", "https-browserify": "^1.0.0", "is-ipfs": "^2.0.0", + "next": "^12.1.0", + "next-images": "^1.8.4", "os-browserify": "^0.3.0", "path-browserify": "^1.0.1", "process": "^0.11.10", @@ -42,7 +46,7 @@ "react-dom": "^16.13.1", "react-dropzone": "^11.3.4", "react-lottie-player": "^1.3.3", - "react-router-dom": "^5.2.0", + "react-router-dom": "^6.2.1", "react-sanitized-html": "^2.0.0", "react-spring": "^8.0.27", "react-use-gesture": "5.2.4", @@ -54,7 +58,7 @@ "timers-browserify": "^2.0.12", "url": "^0.11.0", "urql": "^1.10.1", - "use-wallet": "npm:@1hive/use-wallet@1.1.1", + "use-wallet": "npm:@1hive/use-wallet@0.13.1", "web3-utils": "^1.2.0" }, "browserslist": { @@ -71,6 +75,7 @@ }, "jest": { "moduleNameMapper": { + "^@images(.*)$": "/public$1", "^@assets(.*)$": "/src/assets$1", "^@abis(.*)$": "/src/abi$1", "^@components(.*)$": "/src/components$1", @@ -90,7 +95,6 @@ "@types/node": "^16.11.12", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", - "@types/react-router-dom": "^5.3.2", "@types/resize-observer-browser": "^0.1.6", "@types/styled-components": "^5.1.17", "@typescript-eslint/eslint-plugin": "^5.8.0", @@ -99,7 +103,6 @@ "babel-plugin-styled-components": "^2.0.2", "bundlewatch": "^0.3.2", "cross-env": "^7.0.3", - "customize-cra": "^1.0.0", "eslint": "7.18.0", "eslint-config-prettier": "7.2.0", "eslint-config-standard": "^16.0.3", @@ -116,9 +119,7 @@ "prettier": "^2.5.1", "react-app-polyfill": "^3.0.0", "react-app-rewire-provide-plugin": "^1.0.0", - "react-app-rewired": "^2.1.9", "react-dev-utils": "^12.0.0", - "react-scripts": "^5.0.0", "rimraf": "^2.6.2", "svgo": "^2.8.0", "ts-node": "^10.4.0", diff --git a/paths-tsconfig.json b/paths-tsconfig.json index 14fad0931..cd72dd249 100644 --- a/paths-tsconfig.json +++ b/paths-tsconfig.json @@ -2,16 +2,21 @@ "compilerOptions": { "baseUrl": ".", "paths": { - "@/*": ["./src/*" ], + "@/*": [ + "./src/*" + ], "@components/*": [ "./src/components/*" ], "@abis/*": [ - "./src/abis/*" + "./src/abi/*" ], "@assets/*": [ "./src/assets/*" ], + "@images/*": [ + "./public/*" + ], "@hooks/*": [ "./src/hooks/*" ], @@ -26,4 +31,4 @@ ] } } -} \ No newline at end of file +} diff --git a/src/assets/activity/light/addFunds.svg b/public/icons/activity/light/addFunds.svg similarity index 100% rename from src/assets/activity/light/addFunds.svg rename to public/icons/activity/light/addFunds.svg diff --git a/src/assets/activity/light/approveToken.svg b/public/icons/activity/light/approveToken.svg similarity index 100% rename from src/assets/activity/light/approveToken.svg rename to public/icons/activity/light/approveToken.svg diff --git a/src/assets/activity/light/cancelProposal.svg b/public/icons/activity/light/cancelProposal.svg similarity index 100% rename from src/assets/activity/light/cancelProposal.svg rename to public/icons/activity/light/cancelProposal.svg diff --git a/src/assets/activity/light/challengeAction.svg b/public/icons/activity/light/challengeAction.svg similarity index 100% rename from src/assets/activity/light/challengeAction.svg rename to public/icons/activity/light/challengeAction.svg diff --git a/src/assets/activity/light/claimRewards.svg b/public/icons/activity/light/claimRewards.svg similarity index 100% rename from src/assets/activity/light/claimRewards.svg rename to public/icons/activity/light/claimRewards.svg diff --git a/src/assets/activity/light/delegateVoting.svg b/public/icons/activity/light/delegateVoting.svg similarity index 100% rename from src/assets/activity/light/delegateVoting.svg rename to public/icons/activity/light/delegateVoting.svg diff --git a/src/assets/activity/light/disputeAction.svg b/public/icons/activity/light/disputeAction.svg similarity index 100% rename from src/assets/activity/light/disputeAction.svg rename to public/icons/activity/light/disputeAction.svg diff --git a/src/assets/activity/light/executeAdjustment.svg b/public/icons/activity/light/executeAdjustment.svg similarity index 100% rename from src/assets/activity/light/executeAdjustment.svg rename to public/icons/activity/light/executeAdjustment.svg diff --git a/src/assets/activity/light/executeDecision.svg b/public/icons/activity/light/executeDecision.svg similarity index 100% rename from src/assets/activity/light/executeDecision.svg rename to public/icons/activity/light/executeDecision.svg diff --git a/src/assets/activity/light/executeProposal.svg b/public/icons/activity/light/executeProposal.svg similarity index 100% rename from src/assets/activity/light/executeProposal.svg rename to public/icons/activity/light/executeProposal.svg diff --git a/src/assets/activity/light/newDecision.svg b/public/icons/activity/light/newDecision.svg similarity index 100% rename from src/assets/activity/light/newDecision.svg rename to public/icons/activity/light/newDecision.svg diff --git a/src/assets/activity/light/newProposal.svg b/public/icons/activity/light/newProposal.svg similarity index 100% rename from src/assets/activity/light/newProposal.svg rename to public/icons/activity/light/newProposal.svg diff --git a/src/assets/activity/light/newSignalingProposal.svg b/public/icons/activity/light/newSignalingProposal.svg similarity index 100% rename from src/assets/activity/light/newSignalingProposal.svg rename to public/icons/activity/light/newSignalingProposal.svg diff --git a/src/assets/activity/light/resolveAction.svg b/public/icons/activity/light/resolveAction.svg similarity index 100% rename from src/assets/activity/light/resolveAction.svg rename to public/icons/activity/light/resolveAction.svg diff --git a/src/assets/activity/light/settleAction.svg b/public/icons/activity/light/settleAction.svg similarity index 100% rename from src/assets/activity/light/settleAction.svg rename to public/icons/activity/light/settleAction.svg diff --git a/src/assets/activity/light/signAgreement.svg b/public/icons/activity/light/signAgreement.svg similarity index 100% rename from src/assets/activity/light/signAgreement.svg rename to public/icons/activity/light/signAgreement.svg diff --git a/src/assets/activity/light/stakeToProposal.svg b/public/icons/activity/light/stakeToProposal.svg similarity index 100% rename from src/assets/activity/light/stakeToProposal.svg rename to public/icons/activity/light/stakeToProposal.svg diff --git a/src/assets/activity/light/unwrapToken.svg b/public/icons/activity/light/unwrapToken.svg similarity index 100% rename from src/assets/activity/light/unwrapToken.svg rename to public/icons/activity/light/unwrapToken.svg diff --git a/src/assets/activity/light/updateOracle.svg b/public/icons/activity/light/updateOracle.svg similarity index 100% rename from src/assets/activity/light/updateOracle.svg rename to public/icons/activity/light/updateOracle.svg diff --git a/src/assets/activity/light/voteOnBehalfOf.svg b/public/icons/activity/light/voteOnBehalfOf.svg similarity index 100% rename from src/assets/activity/light/voteOnBehalfOf.svg rename to public/icons/activity/light/voteOnBehalfOf.svg diff --git a/src/assets/activity/light/voteOnDecision.svg b/public/icons/activity/light/voteOnDecision.svg similarity index 100% rename from src/assets/activity/light/voteOnDecision.svg rename to public/icons/activity/light/voteOnDecision.svg diff --git a/src/assets/activity/light/withdrawFromProposal.svg b/public/icons/activity/light/withdrawFromProposal.svg similarity index 100% rename from src/assets/activity/light/withdrawFromProposal.svg rename to public/icons/activity/light/withdrawFromProposal.svg diff --git a/src/assets/activity/light/withdrawFunds.svg b/public/icons/activity/light/withdrawFunds.svg similarity index 100% rename from src/assets/activity/light/withdrawFunds.svg rename to public/icons/activity/light/withdrawFunds.svg diff --git a/src/assets/activity/light/wrapToken.svg b/public/icons/activity/light/wrapToken.svg similarity index 100% rename from src/assets/activity/light/wrapToken.svg rename to public/icons/activity/light/wrapToken.svg diff --git a/src/components/Garden/Agreement/assets/icon.svg b/public/icons/agreement/icon.svg similarity index 100% rename from src/components/Garden/Agreement/assets/icon.svg rename to public/icons/agreement/icon.svg diff --git a/src/components/Garden/Agreement/assets/warning.svg b/public/icons/agreement/warning.svg similarity index 100% rename from src/components/Garden/Agreement/assets/warning.svg rename to public/icons/agreement/warning.svg diff --git a/src/assets/IconHNYLoader.svg b/public/icons/base/IconHNYLoader.svg similarity index 100% rename from src/assets/IconHNYLoader.svg rename to public/icons/base/IconHNYLoader.svg diff --git a/src/assets/InfoButton.svg b/public/icons/base/InfoButton.svg similarity index 100% rename from src/assets/InfoButton.svg rename to public/icons/base/InfoButton.svg diff --git a/src/assets/abstain-icon.svg b/public/icons/base/abstain-icon.svg similarity index 100% rename from src/assets/abstain-icon.svg rename to public/icons/base/abstain-icon.svg diff --git a/src/assets/arrowDown.svg b/public/icons/base/arrowDown.svg similarity index 100% rename from src/assets/arrowDown.svg rename to public/icons/base/arrowDown.svg diff --git a/src/assets/background.svg b/public/icons/base/background.svg similarity index 100% rename from src/assets/background.svg rename to public/icons/base/background.svg diff --git a/src/assets/banner-mobile.png b/public/icons/base/banner-mobile.png similarity index 100% rename from src/assets/banner-mobile.png rename to public/icons/base/banner-mobile.png diff --git a/src/assets/banner-tablet-full.png b/public/icons/base/banner-tablet-full.png similarity index 100% rename from src/assets/banner-tablet-full.png rename to public/icons/base/banner-tablet-full.png diff --git a/src/assets/banner-tablet.png b/public/icons/base/banner-tablet.png similarity index 100% rename from src/assets/banner-tablet.png rename to public/icons/base/banner-tablet.png diff --git a/src/assets/banner.png b/public/icons/base/banner.png similarity index 100% rename from src/assets/banner.png rename to public/icons/base/banner.png diff --git a/src/assets/bee.svg b/public/icons/base/bee.svg similarity index 100% rename from src/assets/bee.svg rename to public/icons/base/bee.svg diff --git a/src/assets/blockIcon.svg b/public/icons/base/blockIcon.svg similarity index 100% rename from src/assets/blockIcon.svg rename to public/icons/base/blockIcon.svg diff --git a/src/assets/celeste-icon.svg b/public/icons/base/celeste-icon.svg similarity index 100% rename from src/assets/celeste-icon.svg rename to public/icons/base/celeste-icon.svg diff --git a/src/assets/challenge-icon.svg b/public/icons/base/challenge-icon.svg similarity index 100% rename from src/assets/challenge-icon.svg rename to public/icons/base/challenge-icon.svg diff --git a/src/assets/connection-error.svg b/public/icons/base/connection-error.svg similarity index 100% rename from src/assets/connection-error.svg rename to public/icons/base/connection-error.svg diff --git a/src/assets/covenantIcon.svg b/public/icons/base/covenantIcon.svg similarity index 100% rename from src/assets/covenantIcon.svg rename to public/icons/base/covenantIcon.svg diff --git a/src/assets/create.svg b/public/icons/base/create.svg similarity index 100% rename from src/assets/create.svg rename to public/icons/base/create.svg diff --git a/src/assets/createProposal.svg b/public/icons/base/createProposal.svg similarity index 100% rename from src/assets/createProposal.svg rename to public/icons/base/createProposal.svg diff --git a/src/assets/defaultGardenLogo.png b/public/icons/base/defaultGardenLogo.png similarity index 100% rename from src/assets/defaultGardenLogo.png rename to public/icons/base/defaultGardenLogo.png diff --git a/src/assets/defaultTokenLogo.svg b/public/icons/base/defaultTokenLogo.svg similarity index 100% rename from src/assets/defaultTokenLogo.svg rename to public/icons/base/defaultTokenLogo.svg diff --git a/src/assets/feedIcon.svg b/public/icons/base/feedIcon.svg similarity index 100% rename from src/assets/feedIcon.svg rename to public/icons/base/feedIcon.svg diff --git a/src/assets/filter.svg b/public/icons/base/filter.svg similarity index 100% rename from src/assets/filter.svg rename to public/icons/base/filter.svg diff --git a/src/assets/flowerError.svg b/public/icons/base/flowerError.svg similarity index 100% rename from src/assets/flowerError.svg rename to public/icons/base/flowerError.svg diff --git a/src/assets/gardensLogo.svg b/public/icons/base/gardensLogo.svg similarity index 100% rename from src/assets/gardensLogo.svg rename to public/icons/base/gardensLogo.svg diff --git a/src/assets/gardensLogoMark.svg b/public/icons/base/gardensLogoMark.svg similarity index 100% rename from src/assets/gardensLogoMark.svg rename to public/icons/base/gardensLogoMark.svg diff --git a/src/assets/gardensLogoType.svg b/public/icons/base/gardensLogoType.svg similarity index 100% rename from src/assets/gardensLogoType.svg rename to public/icons/base/gardensLogoType.svg diff --git a/src/assets/getHoney.svg b/public/icons/base/getHoney.svg similarity index 100% rename from src/assets/getHoney.svg rename to public/icons/base/getHoney.svg diff --git a/src/assets/github.svg b/public/icons/base/github.svg similarity index 100% rename from src/assets/github.svg rename to public/icons/base/github.svg diff --git a/src/assets/header-background.svg b/public/icons/base/header-background.svg similarity index 100% rename from src/assets/header-background.svg rename to public/icons/base/header-background.svg diff --git a/src/assets/home.svg b/public/icons/base/home.svg similarity index 100% rename from src/assets/home.svg rename to public/icons/base/home.svg diff --git a/src/assets/honey.svg b/public/icons/base/honey.svg similarity index 100% rename from src/assets/honey.svg rename to public/icons/base/honey.svg diff --git a/src/assets/icon-acl.svg b/public/icons/base/icon-acl.svg similarity index 100% rename from src/assets/icon-acl.svg rename to public/icons/base/icon-acl.svg diff --git a/src/assets/icon-celeste-star.svg b/public/icons/base/icon-celeste-star.svg similarity index 100% rename from src/assets/icon-celeste-star.svg rename to public/icons/base/icon-celeste-star.svg diff --git a/src/assets/icon-coins.svg b/public/icons/base/icon-coins.svg similarity index 100% rename from src/assets/icon-coins.svg rename to public/icons/base/icon-coins.svg diff --git a/src/assets/icon-dark-mode-light.svg b/public/icons/base/icon-dark-mode-light.svg similarity index 100% rename from src/assets/icon-dark-mode-light.svg rename to public/icons/base/icon-dark-mode-light.svg diff --git a/src/assets/icon-kernel.svg b/public/icons/base/icon-kernel.svg similarity index 100% rename from src/assets/icon-kernel.svg rename to public/icons/base/icon-kernel.svg diff --git a/src/assets/icon-lock.svg b/public/icons/base/icon-lock.svg similarity index 100% rename from src/assets/icon-lock.svg rename to public/icons/base/icon-lock.svg diff --git a/src/assets/icon-registry.svg b/public/icons/base/icon-registry.svg similarity index 100% rename from src/assets/icon-registry.svg rename to public/icons/base/icon-registry.svg diff --git a/src/assets/icon-warning.svg b/public/icons/base/icon-warning.svg similarity index 100% rename from src/assets/icon-warning.svg rename to public/icons/base/icon-warning.svg diff --git a/src/assets/iconCheck.svg b/public/icons/base/iconCheck.svg similarity index 100% rename from src/assets/iconCheck.svg rename to public/icons/base/iconCheck.svg diff --git a/src/assets/iconError.svg b/public/icons/base/iconError.svg similarity index 100% rename from src/assets/iconError.svg rename to public/icons/base/iconError.svg diff --git a/src/assets/iconFees.svg b/public/icons/base/iconFees.svg similarity index 100% rename from src/assets/iconFees.svg rename to public/icons/base/iconFees.svg diff --git a/src/assets/landingBanner-mobile.png b/public/icons/base/landingBanner-mobile.png similarity index 100% rename from src/assets/landingBanner-mobile.png rename to public/icons/base/landingBanner-mobile.png diff --git a/src/assets/landingBanner-tablet.png b/public/icons/base/landingBanner-tablet.png similarity index 100% rename from src/assets/landingBanner-tablet.png rename to public/icons/base/landingBanner-tablet.png diff --git a/src/assets/landingBanner.png b/public/icons/base/landingBanner.png similarity index 100% rename from src/assets/landingBanner.png rename to public/icons/base/landingBanner.png diff --git a/src/assets/linksTooltip.svg b/public/icons/base/linksTooltip.svg similarity index 100% rename from src/assets/linksTooltip.svg rename to public/icons/base/linksTooltip.svg diff --git a/src/components/Account/assets/loading-ring-dark.svg b/public/icons/base/loading-ring-dark.svg similarity index 100% rename from src/components/Account/assets/loading-ring-dark.svg rename to public/icons/base/loading-ring-dark.svg diff --git a/src/components/Account/assets/loading-ring.svg b/public/icons/base/loading-ring.svg similarity index 100% rename from src/components/Account/assets/loading-ring.svg rename to public/icons/base/loading-ring.svg diff --git a/src/assets/modal-background.svg b/public/icons/base/modal-background.svg similarity index 100% rename from src/assets/modal-background.svg rename to public/icons/base/modal-background.svg diff --git a/src/assets/no-proposals.png b/public/icons/base/no-proposals.png similarity index 100% rename from src/assets/no-proposals.png rename to public/icons/base/no-proposals.png diff --git a/src/assets/noData.svg b/public/icons/base/noData.svg similarity index 100% rename from src/assets/noData.svg rename to public/icons/base/noData.svg diff --git a/src/assets/noProposalsYet.svg b/public/icons/base/noProposalsYet.svg similarity index 100% rename from src/assets/noProposalsYet.svg rename to public/icons/base/noProposalsYet.svg diff --git a/src/assets/noSupportIllustration.svg b/public/icons/base/noSupportIllustration.svg similarity index 100% rename from src/assets/noSupportIllustration.svg rename to public/icons/base/noSupportIllustration.svg diff --git a/src/assets/profileButton.svg b/public/icons/base/profileButton.svg similarity index 100% rename from src/assets/profileButton.svg rename to public/icons/base/profileButton.svg diff --git a/src/assets/profileCoverDefault.svg b/public/icons/base/profileCoverDefault.svg similarity index 100% rename from src/assets/profileCoverDefault.svg rename to public/icons/base/profileCoverDefault.svg diff --git a/src/assets/rewardsWrapperIcon.svg b/public/icons/base/rewardsWrapperIcon.svg similarity index 100% rename from src/assets/rewardsWrapperIcon.svg rename to public/icons/base/rewardsWrapperIcon.svg diff --git a/src/assets/signRequestFail.svg b/public/icons/base/signRequestFail.svg similarity index 100% rename from src/assets/signRequestFail.svg rename to public/icons/base/signRequestFail.svg diff --git a/src/assets/signRequestSuccess.svg b/public/icons/base/signRequestSuccess.svg similarity index 100% rename from src/assets/signRequestSuccess.svg rename to public/icons/base/signRequestSuccess.svg diff --git a/src/assets/signalingBadge.svg b/public/icons/base/signalingBadge.svg similarity index 100% rename from src/assets/signalingBadge.svg rename to public/icons/base/signalingBadge.svg diff --git a/src/assets/smart-contract.svg b/public/icons/base/smart-contract.svg similarity index 100% rename from src/assets/smart-contract.svg rename to public/icons/base/smart-contract.svg diff --git a/src/assets/stable-token.svg b/public/icons/base/stable-token.svg similarity index 100% rename from src/assets/stable-token.svg rename to public/icons/base/stable-token.svg diff --git a/src/assets/stakeButton.svg b/public/icons/base/stakeButton.svg similarity index 100% rename from src/assets/stakeButton.svg rename to public/icons/base/stakeButton.svg diff --git a/src/assets/tokenRewardIcon.svg b/public/icons/base/tokenRewardIcon.svg similarity index 100% rename from src/assets/tokenRewardIcon.svg rename to public/icons/base/tokenRewardIcon.svg diff --git a/src/assets/trxBeingMined.svg b/public/icons/base/trxBeingMined.svg similarity index 100% rename from src/assets/trxBeingMined.svg rename to public/icons/base/trxBeingMined.svg diff --git a/src/assets/twitter.svg b/public/icons/base/twitter.svg similarity index 100% rename from src/assets/twitter.svg rename to public/icons/base/twitter.svg diff --git a/src/assets/unwrappedIcon.svg b/public/icons/base/unwrappedIcon.svg similarity index 100% rename from src/assets/unwrappedIcon.svg rename to public/icons/base/unwrappedIcon.svg diff --git a/src/assets/verifiedCheck.svg b/public/icons/base/verifiedCheck.svg similarity index 100% rename from src/assets/verifiedCheck.svg rename to public/icons/base/verifiedCheck.svg diff --git a/src/assets/wrappedIcon.svg b/public/icons/base/wrappedIcon.svg similarity index 100% rename from src/assets/wrappedIcon.svg rename to public/icons/base/wrappedIcon.svg diff --git a/src/assets/dark-mode/background.svg b/public/icons/dark-mode/background.svg similarity index 100% rename from src/assets/dark-mode/background.svg rename to public/icons/dark-mode/background.svg diff --git a/src/assets/dark-mode/banner-mobile.png b/public/icons/dark-mode/banner-mobile.png similarity index 100% rename from src/assets/dark-mode/banner-mobile.png rename to public/icons/dark-mode/banner-mobile.png diff --git a/src/assets/dark-mode/banner-tablet-full.png b/public/icons/dark-mode/banner-tablet-full.png similarity index 100% rename from src/assets/dark-mode/banner-tablet-full.png rename to public/icons/dark-mode/banner-tablet-full.png diff --git a/src/assets/dark-mode/banner-tablet.png b/public/icons/dark-mode/banner-tablet.png similarity index 100% rename from src/assets/dark-mode/banner-tablet.png rename to public/icons/dark-mode/banner-tablet.png diff --git a/src/assets/dark-mode/banner.png b/public/icons/dark-mode/banner.png similarity index 100% rename from src/assets/dark-mode/banner.png rename to public/icons/dark-mode/banner.png diff --git a/src/assets/dark-mode/bee_dark.svg b/public/icons/dark-mode/bee_dark.svg similarity index 100% rename from src/assets/dark-mode/bee_dark.svg rename to public/icons/dark-mode/bee_dark.svg diff --git a/src/assets/dark-mode/connection-error-dark.svg b/public/icons/dark-mode/connection-error-dark.svg similarity index 100% rename from src/assets/dark-mode/connection-error-dark.svg rename to public/icons/dark-mode/connection-error-dark.svg diff --git a/src/assets/dark-mode/covenantIcon.svg b/public/icons/dark-mode/covenantIcon.svg similarity index 100% rename from src/assets/dark-mode/covenantIcon.svg rename to public/icons/dark-mode/covenantIcon.svg diff --git a/src/assets/dark-mode/createProposal.svg b/public/icons/dark-mode/createProposal.svg similarity index 100% rename from src/assets/dark-mode/createProposal.svg rename to public/icons/dark-mode/createProposal.svg diff --git a/src/assets/dark-mode/feedIcon.svg b/public/icons/dark-mode/feedIcon.svg similarity index 100% rename from src/assets/dark-mode/feedIcon.svg rename to public/icons/dark-mode/feedIcon.svg diff --git a/src/assets/dark-mode/flowerError.svg b/public/icons/dark-mode/flowerError.svg similarity index 100% rename from src/assets/dark-mode/flowerError.svg rename to public/icons/dark-mode/flowerError.svg diff --git a/src/assets/dark-mode/gardensLogoMarkDark.svg b/public/icons/dark-mode/gardensLogoMarkDark.svg similarity index 100% rename from src/assets/dark-mode/gardensLogoMarkDark.svg rename to public/icons/dark-mode/gardensLogoMarkDark.svg diff --git a/src/assets/dark-mode/gardensLogoTypeDark.svg b/public/icons/dark-mode/gardensLogoTypeDark.svg similarity index 100% rename from src/assets/dark-mode/gardensLogoTypeDark.svg rename to public/icons/dark-mode/gardensLogoTypeDark.svg diff --git a/src/assets/dark-mode/honey.svg b/public/icons/dark-mode/honey.svg similarity index 100% rename from src/assets/dark-mode/honey.svg rename to public/icons/dark-mode/honey.svg diff --git a/src/assets/dark-mode/icon-dark-mode-dark.svg b/public/icons/dark-mode/icon-dark-mode-dark.svg similarity index 100% rename from src/assets/dark-mode/icon-dark-mode-dark.svg rename to public/icons/dark-mode/icon-dark-mode-dark.svg diff --git a/src/assets/dark-mode/iconProposal.svg b/public/icons/dark-mode/iconProposal.svg similarity index 100% rename from src/assets/dark-mode/iconProposal.svg rename to public/icons/dark-mode/iconProposal.svg diff --git a/src/assets/dark-mode/landingBanner-mobile.png b/public/icons/dark-mode/landingBanner-mobile.png similarity index 100% rename from src/assets/dark-mode/landingBanner-mobile.png rename to public/icons/dark-mode/landingBanner-mobile.png diff --git a/src/assets/dark-mode/landingBanner-tablet.png b/public/icons/dark-mode/landingBanner-tablet.png similarity index 100% rename from src/assets/dark-mode/landingBanner-tablet.png rename to public/icons/dark-mode/landingBanner-tablet.png diff --git a/src/assets/dark-mode/landingBanner.png b/public/icons/dark-mode/landingBanner.png similarity index 100% rename from src/assets/dark-mode/landingBanner.png rename to public/icons/dark-mode/landingBanner.png diff --git a/src/assets/dark-mode/modal-background.svg b/public/icons/dark-mode/modal-background.svg similarity index 100% rename from src/assets/dark-mode/modal-background.svg rename to public/icons/dark-mode/modal-background.svg diff --git a/src/assets/dark-mode/no-dataview-data.svg b/public/icons/dark-mode/no-dataview-data.svg similarity index 100% rename from src/assets/dark-mode/no-dataview-data.svg rename to public/icons/dark-mode/no-dataview-data.svg diff --git a/src/assets/dark-mode/noData.svg b/public/icons/dark-mode/noData.svg similarity index 100% rename from src/assets/dark-mode/noData.svg rename to public/icons/dark-mode/noData.svg diff --git a/src/assets/dark-mode/noSupportIllustrationDark.svg b/public/icons/dark-mode/noSupportIllustrationDark.svg similarity index 100% rename from src/assets/dark-mode/noSupportIllustrationDark.svg rename to public/icons/dark-mode/noSupportIllustrationDark.svg diff --git a/src/assets/dark-mode/profileButton.svg b/public/icons/dark-mode/profileButton.svg similarity index 100% rename from src/assets/dark-mode/profileButton.svg rename to public/icons/dark-mode/profileButton.svg diff --git a/src/assets/dark-mode/profileCoverDefaultDark.svg b/public/icons/dark-mode/profileCoverDefaultDark.svg similarity index 100% rename from src/assets/dark-mode/profileCoverDefaultDark.svg rename to public/icons/dark-mode/profileCoverDefaultDark.svg diff --git a/src/assets/dark-mode/ranking-new-selected.svg b/public/icons/dark-mode/ranking-new-selected.svg similarity index 100% rename from src/assets/dark-mode/ranking-new-selected.svg rename to public/icons/dark-mode/ranking-new-selected.svg diff --git a/src/assets/dark-mode/ranking-new.svg b/public/icons/dark-mode/ranking-new.svg similarity index 100% rename from src/assets/dark-mode/ranking-new.svg rename to public/icons/dark-mode/ranking-new.svg diff --git a/src/assets/dark-mode/ranking-top-selected.svg b/public/icons/dark-mode/ranking-top-selected.svg similarity index 100% rename from src/assets/dark-mode/ranking-top-selected.svg rename to public/icons/dark-mode/ranking-top-selected.svg diff --git a/src/assets/dark-mode/ranking-top.svg b/public/icons/dark-mode/ranking-top.svg similarity index 100% rename from src/assets/dark-mode/ranking-top.svg rename to public/icons/dark-mode/ranking-top.svg diff --git a/src/assets/dark-mode/rewardsWrapperIcon.svg b/public/icons/dark-mode/rewardsWrapperIcon.svg similarity index 100% rename from src/assets/dark-mode/rewardsWrapperIcon.svg rename to public/icons/dark-mode/rewardsWrapperIcon.svg diff --git a/src/assets/dark-mode/signRequestFail.svg b/public/icons/dark-mode/signRequestFail.svg similarity index 100% rename from src/assets/dark-mode/signRequestFail.svg rename to public/icons/dark-mode/signRequestFail.svg diff --git a/src/assets/dark-mode/signRequestSuccess.svg b/public/icons/dark-mode/signRequestSuccess.svg similarity index 100% rename from src/assets/dark-mode/signRequestSuccess.svg rename to public/icons/dark-mode/signRequestSuccess.svg diff --git a/src/assets/dark-mode/smart-contract.svg b/public/icons/dark-mode/smart-contract.svg similarity index 100% rename from src/assets/dark-mode/smart-contract.svg rename to public/icons/dark-mode/smart-contract.svg diff --git a/src/assets/dark-mode/stakeButton.svg b/public/icons/dark-mode/stakeButton.svg similarity index 100% rename from src/assets/dark-mode/stakeButton.svg rename to public/icons/dark-mode/stakeButton.svg diff --git a/src/assets/dark-mode/tokenRewardIcon.svg b/public/icons/dark-mode/tokenRewardIcon.svg similarity index 100% rename from src/assets/dark-mode/tokenRewardIcon.svg rename to public/icons/dark-mode/tokenRewardIcon.svg diff --git a/src/assets/dark-mode/trxBeingMinedIllustrationDark.svg b/public/icons/dark-mode/trxBeingMinedIllustrationDark.svg similarity index 100% rename from src/assets/dark-mode/trxBeingMinedIllustrationDark.svg rename to public/icons/dark-mode/trxBeingMinedIllustrationDark.svg diff --git a/src/assets/dark-mode/unwrappedIconDark.svg b/public/icons/dark-mode/unwrappedIconDark.svg similarity index 100% rename from src/assets/dark-mode/unwrappedIconDark.svg rename to public/icons/dark-mode/unwrappedIconDark.svg diff --git a/src/assets/dark-mode/wrappedIconDark.svg b/public/icons/dark-mode/wrappedIconDark.svg similarity index 100% rename from src/assets/dark-mode/wrappedIconDark.svg rename to public/icons/dark-mode/wrappedIconDark.svg diff --git a/src/components/Onboarding/Deployment/assets/flower-dark.svg b/public/icons/deployment/flower-dark.svg similarity index 100% rename from src/components/Onboarding/Deployment/assets/flower-dark.svg rename to public/icons/deployment/flower-dark.svg diff --git a/src/components/Onboarding/Deployment/assets/flower.svg b/public/icons/deployment/flower.svg similarity index 100% rename from src/components/Onboarding/Deployment/assets/flower.svg rename to public/icons/deployment/flower.svg diff --git a/src/components/Onboarding/Deployment/assets/flowers-leaves-dark.svg b/public/icons/deployment/flowers-leaves-dark.svg similarity index 100% rename from src/components/Onboarding/Deployment/assets/flowers-leaves-dark.svg rename to public/icons/deployment/flowers-leaves-dark.svg diff --git a/src/components/Onboarding/Deployment/assets/flowers-leaves.svg b/public/icons/deployment/flowers-leaves.svg similarity index 100% rename from src/components/Onboarding/Deployment/assets/flowers-leaves.svg rename to public/icons/deployment/flowers-leaves.svg diff --git a/src/components/Onboarding/Deployment/assets/lines-dark.svg b/public/icons/deployment/lines-dark.svg similarity index 100% rename from src/components/Onboarding/Deployment/assets/lines-dark.svg rename to public/icons/deployment/lines-dark.svg diff --git a/src/components/Onboarding/Deployment/assets/lines.svg b/public/icons/deployment/lines.svg similarity index 100% rename from src/components/Onboarding/Deployment/assets/lines.svg rename to public/icons/deployment/lines.svg diff --git a/src/assets/rankings/ranking-best-selected.svg b/public/icons/rankings/ranking-best-selected.svg similarity index 100% rename from src/assets/rankings/ranking-best-selected.svg rename to public/icons/rankings/ranking-best-selected.svg diff --git a/src/assets/rankings/ranking-best.svg b/public/icons/rankings/ranking-best.svg similarity index 100% rename from src/assets/rankings/ranking-best.svg rename to public/icons/rankings/ranking-best.svg diff --git a/src/assets/rankings/ranking-hot-selected.svg b/public/icons/rankings/ranking-hot-selected.svg similarity index 100% rename from src/assets/rankings/ranking-hot-selected.svg rename to public/icons/rankings/ranking-hot-selected.svg diff --git a/src/assets/rankings/ranking-hot.svg b/public/icons/rankings/ranking-hot.svg similarity index 100% rename from src/assets/rankings/ranking-hot.svg rename to public/icons/rankings/ranking-hot.svg diff --git a/src/assets/rankings/ranking-new-selected.svg b/public/icons/rankings/ranking-new-selected.svg similarity index 100% rename from src/assets/rankings/ranking-new-selected.svg rename to public/icons/rankings/ranking-new-selected.svg diff --git a/src/assets/rankings/ranking-new.svg b/public/icons/rankings/ranking-new.svg similarity index 100% rename from src/assets/rankings/ranking-new.svg rename to public/icons/rankings/ranking-new.svg diff --git a/src/assets/rankings/ranking-top-selected.svg b/public/icons/rankings/ranking-top-selected.svg similarity index 100% rename from src/assets/rankings/ranking-top-selected.svg rename to public/icons/rankings/ranking-top-selected.svg diff --git a/src/assets/rankings/ranking-top.svg b/public/icons/rankings/ranking-top.svg similarity index 100% rename from src/assets/rankings/ranking-top.svg rename to public/icons/rankings/ranking-top.svg diff --git a/src/components/Garden/Stake/assets/coin-dark.svg b/public/icons/stake/coin-dark.svg similarity index 100% rename from src/components/Garden/Stake/assets/coin-dark.svg rename to public/icons/stake/coin-dark.svg diff --git a/src/components/Garden/Stake/assets/coin.svg b/public/icons/stake/coin.svg similarity index 100% rename from src/components/Garden/Stake/assets/coin.svg rename to public/icons/stake/coin.svg diff --git a/src/components/Garden/Stake/assets/connect-icon-dark.svg b/public/icons/stake/connect-icon-dark.svg similarity index 100% rename from src/components/Garden/Stake/assets/connect-icon-dark.svg rename to public/icons/stake/connect-icon-dark.svg diff --git a/src/components/Garden/Stake/assets/connect-icon.svg b/public/icons/stake/connect-icon.svg similarity index 100% rename from src/components/Garden/Stake/assets/connect-icon.svg rename to public/icons/stake/connect-icon.svg diff --git a/src/components/Garden/Stake/assets/no-dataview-data.svg b/public/icons/stake/no-dataview-data.svg similarity index 100% rename from src/components/Garden/Stake/assets/no-dataview-data.svg rename to public/icons/stake/no-dataview-data.svg diff --git a/src/components/Garden/Stake/assets/wallet-dark.svg b/public/icons/stake/wallet-dark.svg similarity index 100% rename from src/components/Garden/Stake/assets/wallet-dark.svg rename to public/icons/stake/wallet-dark.svg diff --git a/src/components/Garden/Stake/assets/wallet.svg b/public/icons/stake/wallet.svg similarity index 100% rename from src/components/Garden/Stake/assets/wallet.svg rename to public/icons/stake/wallet.svg diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 090f87659..000000000 --- a/public/index.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - Gardens - - - -
- - diff --git a/public/manifest.json b/public/manifest.json deleted file mode 100644 index 7e8747627..000000000 --- a/public/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "short_name": "Gardens", - "name": "Gardens", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" -} diff --git a/src/App.tsx b/src/App.tsx index 0eee18c0e..511ef5a97 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,44 +1,44 @@ -import React from 'react' -import GlobalErrorHandler from './GlobalErrorHandler' -import { GardensProvider } from './providers/Gardens' -import { ProfileProvider } from './providers/Profile' -import { UserProvider } from './providers/User' -import { WalletProvider } from './providers/Wallet' -import Routes from './routes/Routes' -import { Main } from '@1hive/1hive-ui' -import MainView from '@components/MainView' -import { useAppTheme } from './providers/AppTheme' -import WelcomeLoader from '@components/Welcome/WelcomeLoader' -import { HashRouter } from 'react-router-dom' +// import React from 'react' +// import GlobalErrorHandler from './GlobalErrorHandler' +// import { GardensProvider } from './providers/Gardens' +// import { ProfileProvider } from './providers/Profile' +// import { UserProvider } from './providers/User' +// import { WalletProvider } from './providers/Wallet' +// import Routes from './routes/Routes' +// import { Main } from '@1hive/1hive-ui' +// import MainView from '@components/MainView' +// import { useAppTheme } from './providers/AppTheme' +// import WelcomeLoader from '@components/Welcome/WelcomeLoader' +// import { HashRouter } from 'react-router-dom' -function App() { - const { appearance } = useAppTheme() +// function App() { +// const { appearance } = useAppTheme() - return ( - -
- - - - - - - - - - - - - - -
-
- ) -} +// return ( +// +//
+// +// +// +// +// +// +// +// +// +// +// +// +// +// +//
+//
+// ) +// } -export default App +// export default App diff --git a/src/components/Account/ScreenConnected.tsx b/src/components/Account/ScreenConnected.tsx index 118f816f2..424b49706 100644 --- a/src/components/Account/ScreenConnected.tsx +++ b/src/components/Account/ScreenConnected.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from 'react' -import { useHistory } from 'react-router-dom' +import { useRouter } from 'next/router' import { getProviderFromUseWalletId } from 'use-wallet' import { Button, @@ -20,10 +20,10 @@ import { useAppTheme } from '@/providers/AppTheme' import { buildGardenPath } from '@utils/routing-utils' import { getNetworkName } from '@utils/web3-utils' -import profileButtonSvg from '@assets/profileButton.svg' -import stakeButtonSvg from '@assets/stakeButton.svg' -import profileButtonDarkSvg from '@assets/dark-mode/profileButton.svg' -import stakeButtonDarkSvg from '@assets/dark-mode/stakeButton.svg' +import profileButtonSvg from '@images/icons/base/profileButton.svg' +import stakeButtonSvg from '@images/icons/base/stakeButton.svg' +import profileButtonDarkSvg from '@images/icons/dark-mode/profileButton.svg' +import stakeButtonDarkSvg from '@images/icons/dark-mode/stakeButton.svg' type AccountScreenConnectedProps = { providerId: string @@ -36,7 +36,7 @@ function AccountScreenConnected({ }: AccountScreenConnectedProps) { const theme = useTheme() const { appearance } = useAppTheme() - const history = useHistory() + const router = useRouter() const copy = useCopyToClipboard() const connectedGarden = useConnectedGarden() const { account, chainId, resetConnection } = useWallet() @@ -45,15 +45,15 @@ function AccountScreenConnected({ const providerInfo = getProviderFromUseWalletId(providerId) const goToProfile = useCallback(() => { - history.push(`/profile`) + router.push(`/profile`) onClosePopover() - }, [history, onClosePopover]) + }, [router, onClosePopover]) const goToStakeManagement = useCallback(() => { - const path = buildGardenPath(history.location, 'collateral') - history.push(path) + const path = buildGardenPath(router, 'collateral') + router.push(path) onClosePopover() - }, [history, onClosePopover]) + }, [router, onClosePopover]) const handleCopyAddress = useCallback(() => copy(account), [account, copy]) diff --git a/src/components/Account/ScreenConnecting.js b/src/components/Account/ScreenConnecting.js index 6dc37e698..cca37e2f5 100644 --- a/src/components/Account/ScreenConnecting.js +++ b/src/components/Account/ScreenConnecting.js @@ -5,8 +5,8 @@ import { getProviderFromUseWalletId } from 'use-wallet' import { GU, useTheme, textStyle, Link } from '@1hive/1hive-ui' import { useAppTheme } from '@/providers/AppTheme' -import loadingRing from './assets/loading-ring.svg' -import loadingRingDark from './assets/loading-ring-dark.svg' +import loadingRing from '@images/icons/base/loading-ring.svg' +import loadingRingDark from '@images/icons/base/loading-ring-dark.svg' const spin = keyframes` from { diff --git a/src/components/Account/ScreenError.js b/src/components/Account/ScreenError.js index 3ab14f5bd..cd3c7874d 100644 --- a/src/components/Account/ScreenError.js +++ b/src/components/Account/ScreenError.js @@ -6,8 +6,8 @@ import { SUPPORTED_CHAINS } from '@/networks' import { getNetworkName } from '@utils/web3-utils' import { useAppTheme } from '@providers/AppTheme' -import connectionError from '@assets/connection-error.svg' -import connectionErrorDark from '@assets/dark-mode/connection-error-dark.svg' +import connectionError from '@images/icons/base/connection-error.svg' +import connectionErrorDark from '@images/icons/dark-mode/connection-error-dark.svg' function AccountModuleErrorScreen({ error, onBack }) { const theme = useTheme() diff --git a/src/components/Account/ScreenPromptingAction.js b/src/components/Account/ScreenPromptingAction.js index 8b016e273..b82ca0dec 100644 --- a/src/components/Account/ScreenPromptingAction.js +++ b/src/components/Account/ScreenPromptingAction.js @@ -6,8 +6,8 @@ import { GU, useTheme, textStyle, Link } from '@1hive/1hive-ui' import { useConnectedGarden } from '@providers/ConnectedGarden' import { useAppTheme } from '@/providers/AppTheme' import { getNetwork } from '@/networks' -import loadingRing from './assets/loading-ring.svg' -import loadingRingDark from './assets/loading-ring-dark.svg' +import loadingRing from '@images/icons/base/loading-ring.svg' +import loadingRingDark from '@images/icons/base/loading-ring-dark.svg' const spin = keyframes` from { diff --git a/src/components/Activity/ActivityButton.js b/src/components/Activity/ActivityButton.js index 09a2fed02..c9b683807 100644 --- a/src/components/Activity/ActivityButton.js +++ b/src/components/Activity/ActivityButton.js @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useRef, useState } from 'react' -import { Spring, animated } from 'react-spring/renderprops' +import { Spring, animated } from 'react-spring/renderprops.cjs' import { ButtonIcon, IconAlert, diff --git a/src/components/Activity/ActivityList.js b/src/components/Activity/ActivityList.js index 0e0a3d39b..8a730ce43 100644 --- a/src/components/Activity/ActivityList.js +++ b/src/components/Activity/ActivityList.js @@ -1,5 +1,5 @@ import React, { useMemo } from 'react' -import { Transition, animated } from 'react-spring/renderprops' +import { Transition, animated } from 'react-spring/renderprops.cjs' import { ButtonText, GU, @@ -14,8 +14,8 @@ import { useAppTheme } from '@/providers/AppTheme' import { ActivityStatus } from './activity-statuses' -import noDataSvg from '@assets/noData.svg' -import noDataDarkSvg from '@assets/dark-mode/noData.svg' +import noDataSvg from '@images/icons/base/noData.svg' +import noDataDarkSvg from '@images/icons/dark-mode/noData.svg' // 8GU for top bar, 4GU for activity heading, // 11GU for HelpScout beacon (3GU top/bottom padding, 5GU beacon) diff --git a/src/components/Activity/TransactionProgress.js b/src/components/Activity/TransactionProgress.js index 5eced7cae..bef7d3c89 100644 --- a/src/components/Activity/TransactionProgress.js +++ b/src/components/Activity/TransactionProgress.js @@ -1,6 +1,6 @@ import React from 'react' import { ProgressBar, GU } from '@1hive/1hive-ui' -import { Transition, animated } from 'react-spring/renderprops' +import { Transition, animated } from 'react-spring/renderprops.cjs' import TimeTag from './TimeTag' import useNow from '@hooks/useNow' diff --git a/src/components/BalanceModule.tsx b/src/components/BalanceModule.tsx index 827497976..57d47dc8a 100644 --- a/src/components/BalanceModule.tsx +++ b/src/components/BalanceModule.tsx @@ -9,7 +9,6 @@ import { useAppTheme } from '@/providers/AppTheme' import { formatTokenAmount } from '@utils/token-utils' import { safeDivBN } from '@utils/math-utils' -import defaultTokenLogo from '@assets/defaultTokenLogo.svg' function BalanceModule() { const theme = useTheme() @@ -31,10 +30,12 @@ function BalanceModule() { @@ -33,7 +33,7 @@ function DAONotFoundError({ chainId, daoId }) {