mirror of
https://github.com/fullstack-cash/wallet.fullstack.cash.git
synced 2026-09-21 16:52:05 -07:00
fix(menu): Redering default menu items
This commit is contained in:
@@ -8,23 +8,56 @@
|
|||||||
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Sidebar } from 'adminlte-2-react'
|
import { Sidebar } from 'adminlte-2-react'
|
||||||
|
|
||||||
|
import Wallet from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet'
|
||||||
|
import Tokens from 'gatsby-ipfs-web-wallet/src/components/admin-lte/tokens'
|
||||||
|
import Configure from 'gatsby-ipfs-web-wallet/src/components/admin-lte/configure'
|
||||||
|
import SendReceive from 'gatsby-ipfs-web-wallet/src/components/admin-lte/send-receive'
|
||||||
|
|
||||||
import About from '../../about'
|
import About from '../../about'
|
||||||
import Sweep from 'gatsby-plugin-bch-sweep/src/components/sweep'
|
import Sweep from 'gatsby-plugin-bch-sweep/src/components/sweep'
|
||||||
|
|
||||||
const { Item } = Sidebar
|
const { Item } = Sidebar
|
||||||
|
|
||||||
const MenuComponents = [
|
const MenuComponents = props => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
key: 'Tokens',
|
||||||
|
component: <Tokens key="Tokens" {...props} />,
|
||||||
|
menuItem: <Item icon="fas-coins" key="Tokens" text="Tokens" />
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'Send/Receive BCH',
|
||||||
|
component: <SendReceive key="Send/Receive BCH" {...props} />,
|
||||||
|
menuItem: (
|
||||||
|
<Item
|
||||||
|
icon="fa-exchange-alt"
|
||||||
|
key="Send/Receive BCH"
|
||||||
|
text="Send/Receive BCH"
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'Sweep',
|
key: 'Sweep',
|
||||||
// component: <><p>test</p></>,
|
component: <Sweep key="Sweep" {...props} />,
|
||||||
component: <Sweep key='Sweep' />,
|
menuItem: <Item icon="fas-cog" key="Sweep" text="Sweep" />
|
||||||
menuItem: <Item icon='fas-cog' key='Sweep' text='Sweep' />
|
},
|
||||||
|
{
|
||||||
|
key: 'Wallet',
|
||||||
|
component: <Wallet key="Wallet" {...props} />,
|
||||||
|
menuItem: <Item icon="fa-wallet" key="Wallet" text="Wallet" />
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 'Configure',
|
||||||
|
component: <Configure key="Configure" {...props} />,
|
||||||
|
menuItem: <Item icon="fas-cog" key="Configure" text="Configure" />
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'About',
|
key: 'About',
|
||||||
component: <About />,
|
component: <About key="About" {...props} />,
|
||||||
menuItem: <Item icon='fas-cog' key='About' text='About' />
|
menuItem: <Item icon="fas-cog" key="About" text="About" />
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
|
||||||
export default MenuComponents
|
export default MenuComponents
|
||||||
|
|||||||
Reference in New Issue
Block a user