Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/App.js
Show All 11 Lines | |||||
import Send from '@components/Send/Send'; | import Send from '@components/Send/Send'; | ||||
import SendToken from '@components/Send/SendToken'; | import SendToken from '@components/Send/SendToken'; | ||||
import Configure from '@components/Configure/Configure'; | import Configure from '@components/Configure/Configure'; | ||||
import NotFound from '@components/NotFound'; | import NotFound from '@components/NotFound'; | ||||
import CashTab from '@assets/cashtab.png'; | import CashTab from '@assets/cashtab.png'; | ||||
import ABC from '@assets/bitcoinabclogo.png'; | import ABC from '@assets/bitcoinabclogo.png'; | ||||
import './App.css'; | import './App.css'; | ||||
import { WalletContext } from '@utils/context'; | import { WalletContext } from '@utils/context'; | ||||
import WalletLabel from '@components/Common/WalletLabel.js'; | |||||
import { | import { | ||||
Route, | Route, | ||||
Redirect, | Redirect, | ||||
Switch, | Switch, | ||||
useLocation, | useLocation, | ||||
useHistory, | useHistory, | ||||
} from 'react-router-dom'; | } from 'react-router-dom'; | ||||
▲ Show 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | return ( | ||||
<a | <a | ||||
href="https://www.bitcoinabc.org/" | href="https://www.bitcoinabc.org/" | ||||
target="_blank" | target="_blank" | ||||
rel="noopener noreferrer" | rel="noopener noreferrer" | ||||
> | > | ||||
<AbcLogo src={ABC} alt="abc" /> | <AbcLogo src={ABC} alt="abc" /> | ||||
</a> | </a> | ||||
</HeaderCtn> | </HeaderCtn> | ||||
<WalletLabel name={wallet.name}></WalletLabel> | |||||
<Switch> | <Switch> | ||||
<Route path="/wallet"> | <Route path="/wallet"> | ||||
<Wallet /> | <Wallet /> | ||||
</Route> | </Route> | ||||
<Route path="/send"> | <Route path="/send"> | ||||
<Send /> | <Send /> | ||||
</Route> | </Route> | ||||
<Route | <Route | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |