diff --git a/web/cashtab/extension/src/components/App.js b/web/cashtab/extension/src/components/App.js --- a/web/cashtab/extension/src/components/App.js +++ b/web/cashtab/extension/src/components/App.js @@ -34,7 +34,7 @@ } from 'react-router-dom'; // Extension-only import used for open in new tab link import PopOut from 'assets/popout.svg'; - +import OnBoarding from './OnBoarding/OnBoarding'; const GlobalStyle = createGlobalStyle` *::placeholder { color: ${props => props.theme.forms.placeholder} !important; @@ -262,49 +262,79 @@ {/*Hence is not pulled in*/} - + {wallet ? : } - + {wallet ? ( + + ) : ( + + )} + - + {wallet ? ( + + ) : ( + + )} - + {wallet ? ( + + ) : ( + + )} ( - + {wallet ? ( + + ) : ( + + )} + + )} + /> + + {wallet ? ( + + ) : ( + )} - /> - - - + {wallet ? ( + + ) : ( + + )} diff --git a/web/cashtab/src/components/Airdrop/Airdrop.js b/web/cashtab/src/components/Airdrop/Airdrop.js --- a/web/cashtab/src/components/Airdrop/Airdrop.js +++ b/web/cashtab/src/components/Airdrop/Airdrop.js @@ -44,7 +44,6 @@ } from 'components/Common/Atoms'; import WalletLabel from 'components/Common/WalletLabel.js'; import { Link } from 'react-router-dom'; - const AirdropActions = styled.div` text-align: center; width: 100%; diff --git a/web/cashtab/src/components/App.js b/web/cashtab/src/components/App.js --- a/web/cashtab/src/components/App.js +++ b/web/cashtab/src/components/App.js @@ -37,7 +37,7 @@ import { checkForTokenById } from 'utils/tokenMethods.js'; // Biometric security import not used in extension/src/components/App.js import ProtectableComponentWrapper from './Authentication/ProtectableComponentWrapper'; - +import OnBoarding from './OnBoarding/OnBoarding'; const GlobalStyle = createGlobalStyle` *::placeholder { color: ${props => props.theme.forms.placeholder} !important; @@ -279,51 +279,78 @@ - + {wallet ? : } - + {wallet ? ( + + ) : ( + + )} - + {wallet ? ( + + ) : ( + + )} - + {wallet ? ( + + ) : ( + + )} ( - + {wallet ? ( + + ) : ( + + )} + + )} + /> + + {wallet ? ( + + ) : ( + )} - /> - - - + {wallet ? ( + + ) : ( + + )} diff --git a/web/cashtab/src/components/Configure/Configure.js b/web/cashtab/src/components/Configure/Configure.js --- a/web/cashtab/src/components/Configure/Configure.js +++ b/web/cashtab/src/components/Configure/Configure.js @@ -54,7 +54,6 @@ import { formatSavedBalance } from 'utils/formatting'; import { isValidXecAddress } from 'utils/validation'; import { convertToEcashPrefix } from 'utils/cashMethods'; - import { currency } from 'components/Common/Ticker.js'; const { Panel } = Collapse; diff --git a/web/cashtab/src/components/Home/Home.js b/web/cashtab/src/components/Home/Home.js --- a/web/cashtab/src/components/Home/Home.js +++ b/web/cashtab/src/components/Home/Home.js @@ -1,7 +1,6 @@ import React from 'react'; import styled from 'styled-components'; import { WalletContext } from 'utils/context'; -import OnBoarding from 'components/OnBoarding/OnBoarding'; import { currency } from 'components/Common/Ticker.js'; import { Link } from 'react-router-dom'; import TokenList from './TokenList'; @@ -236,24 +235,9 @@ const Home = () => { const ContextValue = React.useContext(WalletContext); - const { wallet, previousWallet, loading } = ContextValue; + const { loading } = ContextValue; - return ( - <> - {loading ? ( - - ) : ( - <> - {(wallet && wallet.Path1899) || - (previousWallet && previousWallet.path1899) ? ( - - ) : ( - - )} - - )} - - ); + return <>{loading ? : }; }; export default Home; diff --git a/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap b/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap --- a/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap +++ b/web/cashtab/src/components/Home/__tests__/__snapshots__/Home.test.js.snap @@ -3,15 +3,15 @@ exports[`Wallet with BCH balances 1`] = ` Array [

MigrationTestAlpha

0 @@ -19,26 +19,26 @@
,
@@ -87,15 +87,15 @@ exports[`Wallet with BCH balances and tokens 1`] = ` Array [

MigrationTestAlpha

0 @@ -103,26 +103,26 @@
,
@@ -171,15 +171,15 @@ exports[`Wallet with BCH balances and tokens and state field 1`] = ` Array [

MigrationTestAlpha

0.06 @@ -187,26 +187,26 @@
,
@@ -248,13 +248,13 @@ onClick={[Function]} >

TBS @@ -274,15 +274,15 @@ exports[`Wallet without BCH balance 1`] = ` Array [

MigrationTestAlpha

0 @@ -290,26 +290,26 @@
,
, +] `; diff --git a/web/cashtab/src/components/Send/Send.js b/web/cashtab/src/components/Send/Send.js --- a/web/cashtab/src/components/Send/Send.js +++ b/web/cashtab/src/components/Send/Send.js @@ -61,7 +61,6 @@ import styled from 'styled-components'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import WalletLabel from 'components/Common/WalletLabel.js'; - const { TextArea } = Input; const SignMessageLabel = styled.div` diff --git a/web/cashtab/src/components/Tokens/Tokens.js b/web/cashtab/src/components/Tokens/Tokens.js --- a/web/cashtab/src/components/Tokens/Tokens.js +++ b/web/cashtab/src/components/Tokens/Tokens.js @@ -14,7 +14,6 @@ } from 'components/Common/Atoms'; import ApiError from 'components/Common/ApiError'; import WalletLabel from 'components/Common/WalletLabel.js'; - const Tokens = ({ jestBCH, passLoadingStatus }) => { const { wallet, apiError, fiatPrice, cashtabSettings } = React.useContext(WalletContext);