lbry-desktop/ui/page/wallet/view.jsx

26 lines
597 B
React
Raw Normal View History

// @flow
2019-06-17 22:32:38 +02:00
import React from 'react';
import { withRouter } from 'react-router';
2019-06-17 22:32:38 +02:00
import WalletBalance from 'component/walletBalance';
import TxoList from 'component/txoList';
2019-06-17 22:32:38 +02:00
import Page from 'component/page';
type Props = {
history: { action: string, push: string => void, replace: string => void },
location: { search: string, pathname: string },
};
2019-06-17 22:32:38 +02:00
const WalletPage = (props: Props) => {
const { location } = props;
const { search } = location;
return (
<Page>
<WalletBalance />
<TxoList search={search} />
</Page>
);
};
export default withRouter(WalletPage);