Move swap component into separate module
This commit is contained in:
parent
7b0cd96c4a
commit
44917ee3df
|
@ -12,7 +12,7 @@ import {
|
|||
TransactionSignature,
|
||||
} from "@solana/web3.js";
|
||||
import { TokenListProvider } from "@solana/spl-token-registry";
|
||||
import Swap from "./components/Swap";
|
||||
import Swap from "./swap";
|
||||
import "./App.css";
|
||||
|
||||
// App illustrating the use of the Swap component.
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// The swap module exports a single `Swap` component that can be embedded into
|
||||
// applications.
|
||||
|
||||
import Swap from "./components/Swap";
|
||||
export default Swap;
|
|
@ -1,5 +1,5 @@
|
|||
// TODO: replace this whole file with something more modern. This is all copied
|
||||
// from sollet..
|
||||
// from sollet.
|
||||
|
||||
import * as BufferLayout from "buffer-layout";
|
||||
import { BN } from "@project-serum/anchor";
|
Loading…
Reference in New Issue