Update react router (#180)
* feat: add deployment * feat: switch router * Merge pull request #1 from certusone/master Add deployment (#179)
This commit is contained in:
parent
ea6f3badec
commit
e68c1b240d
|
@ -3,12 +3,13 @@
|
|||
Read our [introduction blog article](https://medium.com/certus-one/introducing-the-wormhole-bridge-24911b7335f7)
|
||||
for more details on Wormhole and its major design decisions.
|
||||
|
||||
See [Test application](https://arweave.net/lwPN0jvDXmdkB1wO27JYJ5OiI1-wtCconaNCZgnux2M) deployed on Arweave.
|
||||
|
||||
See [DEVELOP.md](DEVELOP.md) for instructions on how to set up a local devnet.
|
||||
|
||||
See [docs/operations.md](docs/operations.md) for node operator instructions.
|
||||
|
||||

|
||||
|
||||
### Audit / Feature Status
|
||||
|
||||
| Feature | Maintainer | Auditor | Status |
|
||||
|
|
|
@ -6,7 +6,7 @@ import Transfer from "../pages/Transfer";
|
|||
import {Empty, Layout} from 'antd';
|
||||
import {SolanaTokenProvider} from "../providers/SolanaTokenContext";
|
||||
import {SlotProvider} from "../providers/SlotContext";
|
||||
import {BrowserRouter as Router, Link, Route, Switch} from 'react-router-dom';
|
||||
import { HashRouter, Link, Route, Switch} from 'react-router-dom';
|
||||
import TransferSolana from "../pages/TransferSolana";
|
||||
import WalletContext from '../providers/WalletContext';
|
||||
import Wallet from "@project-serum/sol-wallet-adapter";
|
||||
|
@ -37,7 +37,7 @@ function App() {
|
|||
return (
|
||||
<div className="App">
|
||||
<Layout style={{height: '100%'}}>
|
||||
<Router>
|
||||
<HashRouter basename={"/"}>
|
||||
<Header style={{position: 'fixed', zIndex: 1, width: '100%'}}>
|
||||
<Link to="/" style={{paddingRight: 20}}>Assistant</Link>
|
||||
<Link to="/eth" style={{paddingRight: 20}}>Ethereum</Link>
|
||||
|
@ -85,7 +85,7 @@ function App() {
|
|||
</div>
|
||||
</Content>
|
||||
<Footer style={{textAlign: 'center'}}>The Wormhole Project</Footer>
|
||||
</Router>
|
||||
</HashRouter>
|
||||
</Layout>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue