diff --git a/web/cashtab-v2/src/components/Common/EnhancedInputs.js b/web/cashtab-v2/src/components/Common/EnhancedInputs.js --- a/web/cashtab-v2/src/components/Common/EnhancedInputs.js +++ b/web/cashtab-v2/src/components/Common/EnhancedInputs.js @@ -1,7 +1,6 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { Form, Input, Select } from 'antd'; -const { TextArea } = Input; import { ThemedDollarOutlined, ThemedWalletOutlined, @@ -11,6 +10,8 @@ import useBCH from 'hooks/useBCH'; import { currency } from 'components/Common/Ticker.js'; +const { TextArea } = Input; + export const AntdFormCss = css` .ant-input-group-addon { background-color: ${props => diff --git a/web/cashtab-v2/src/components/Send/Send.js b/web/cashtab-v2/src/components/Send/Send.js --- a/web/cashtab-v2/src/components/Send/Send.js +++ b/web/cashtab-v2/src/components/Send/Send.js @@ -10,8 +10,6 @@ } from 'components/Common/EnhancedInputs'; import { AdvancedCollapse } from 'components/Common/StyledCollapse'; import { Form, message, Modal, Alert, Collapse, Input, Button } from 'antd'; -const { Panel } = Collapse; -const { TextArea } = Input; import { Row, Col, Switch } from 'antd'; import PrimaryButton, { SecondaryButton, @@ -59,6 +57,9 @@ import { CopyToClipboard } from 'react-copy-to-clipboard'; import WalletLabel from 'components/Common/WalletLabel.js'; +const { Panel } = Collapse; +const { TextArea } = Input; + const SignMessageLabel = styled.div` text-align: left; color: ${props => props.theme.forms.text}; diff --git a/web/cashtab-v2/src/components/Tokens/CreateTokenForm.js b/web/cashtab-v2/src/components/Tokens/CreateTokenForm.js --- a/web/cashtab-v2/src/components/Tokens/CreateTokenForm.js +++ b/web/cashtab-v2/src/components/Tokens/CreateTokenForm.js @@ -36,7 +36,6 @@ Typography, Switch, } from 'antd'; -const { Panel } = Collapse; import { TokenParamLabel, FormLabel } from 'components/Common/Atoms'; import { createTokenNotification, @@ -47,6 +46,7 @@ import getCroppedImg from 'utils/icons/cropImage'; import getRoundImg from 'utils/icons/roundImage'; import getResizedImage from 'utils/icons/resizeImage'; + const { Dragger } = Upload; export const CreateTokenCtn = styled.div` diff --git a/web/cashtab-v2/src/utils/context.js b/web/cashtab-v2/src/utils/context.js --- a/web/cashtab-v2/src/utils/context.js +++ b/web/cashtab-v2/src/utils/context.js @@ -1,5 +1,7 @@ import React from 'react'; import useWallet from '../hooks/useWallet'; +import useWebAuthentication from '../hooks/useWebAuthentication'; + export const WalletContext = React.createContext(); export const WalletProvider = ({ children }) => { @@ -12,7 +14,7 @@ }; // Authentication Context -import useWebAuthentication from '../hooks/useWebAuthentication'; + export const AuthenticationContext = React.createContext(); export const AuthenticationProvider = ({ children }) => { // useWebAuthentication returns null if Web Authn is not supported