diff --git a/next.config.js b/next.config.js index f9e9bb0..3ab30e0 100644 --- a/next.config.js +++ b/next.config.js @@ -12,6 +12,7 @@ const CONNECT_SRC_HOSTS = [ 'https://*.walletconnect.com', 'wss://*.walletconnect.com', 'wss://*.walletconnect.org', + 'https://api.github.com', 'https://raw.githubusercontent.com', 'https://celo-mainnet.infura.io', ]; @@ -33,7 +34,9 @@ const cspHeader = ` frame-ancestors 'none'; ${!isDev ? 'block-all-mixed-content;' : ''} ${!isDev ? 'upgrade-insecure-requests;' : ''} -`.replace(/\s{2,}/g, ' ').trim(); +` + .replace(/\s{2,}/g, ' ') + .trim(); const securityHeaders = [ { @@ -59,13 +62,13 @@ const securityHeaders = [ value: cspHeader, }, ] - : []) + : []), ]; module.exports = { webpack: (config) => { - config.externals = [...config.externals, 'pino-pretty'] - return config + config.externals = [...config.externals, 'pino-pretty']; + return config; }, async headers() { @@ -74,14 +77,14 @@ module.exports = { source: '/(.*)', headers: securityHeaders, }, - ] + ]; }, images: { remotePatterns: [ { - protocol: "https", - hostname: "**", + protocol: 'https', + hostname: '**', }, ], }, diff --git a/src/app/account/page.tsx b/src/app/account/page.tsx index d2854ab..6c2ff12 100644 --- a/src/app/account/page.tsx +++ b/src/app/account/page.tsx @@ -24,9 +24,9 @@ import { useTransactionModal } from 'src/features/transactions/TransactionModal' import { TxModalType } from 'src/features/transactions/types'; import { ValidatorGroup } from 'src/features/validators/types'; import { useValidatorGroups } from 'src/features/validators/useValidatorGroups'; -import Lock from 'src/images/icons/lock.svg'; -import Unlock from 'src/images/icons/unlock.svg'; -import Withdraw from 'src/images/icons/withdraw.svg'; +import LockIcon from 'src/images/icons/lock.svg'; +import UnlockIcon from 'src/images/icons/unlock.svg'; +import WithdrawIcon from 'src/images/icons/withdraw.svg'; import { usePageInvariant } from 'src/utils/navigation'; import { useAccount } from 'wagmi'; @@ -88,7 +88,7 @@ function LockButtons({ className }: { className?: string }) { onClick={() => showTxModal(TxModalType.Lock, { defaultAction: LockActionType.Lock })} >
+ Lock CELO to vote on proposals and stake with validators. +
+