diff --git a/src/components/admin-lte/configure/TabsMenu.js b/src/components/admin-lte/configure/TabsMenu.js new file mode 100644 index 0000000..a24c9cb --- /dev/null +++ b/src/components/admin-lte/configure/TabsMenu.js @@ -0,0 +1,23 @@ +import React from 'react' +import { Tabs, Tab } from 'react-bootstrap' +import MenuComponents from './menu-components' + + +function TabsMenu(props) { + return ( + + {MenuComponents.length > 0 && + + + + {MenuComponents.map(menuItem => )} + } + + ) +} + +export default TabsMenu; + diff --git a/src/components/admin-lte/configure/index.js b/src/components/admin-lte/configure/index.js index 41b8bd4..d953841 100644 --- a/src/components/admin-lte/configure/index.js +++ b/src/components/admin-lte/configure/index.js @@ -1,11 +1,12 @@ import React from 'react' import PropTypes from 'prop-types' -import { Content, Row, Col, Box, Inputs, Button, ButtonGroup } from 'adminlte-2-react' +import { Content, Row, Col, Box, Inputs, Button } from 'adminlte-2-react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import MenuComponents from './menu-components' // import BchWallet from 'minimal-slp-wallet' import Servers from './servers' import { setWalletInfo } from '../../localWallet' +import TabsMenu from './TabsMenu' const { Text } = Inputs @@ -28,23 +29,16 @@ class Configure extends React.Component { } _this.BchWallet = BchWallet + + this.handleSelect = key => { + _this.setState({ menuItem: key }); + } } render () { return ( - {MenuComponents.length > 0 && - -