mirror of
https://github.com/fullstack-cash/wallet.fullstack.cash.git
synced 2026-09-22 01:02:06 -07:00
Initial commit from gatsby: (https://github.com/Permissionless-Software-Foundation/bch-wallet-starter.git)
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
This is a demonstration component. It helps to show how you can create new
|
||||
menu items and Views in your own BCH web wallet dashboard app.
|
||||
|
||||
This file controls the View (the part on the right side of the dashboard) of
|
||||
the component. The menu item is controlled by the menu-components.js file.
|
||||
*/
|
||||
|
||||
import React from 'react'
|
||||
import { Row, Col, Content, Box, Button } from 'adminlte-2-react'
|
||||
|
||||
class DemoComponent extends React.Component {
|
||||
render () {
|
||||
return (
|
||||
<Content
|
||||
title='Demo Component'
|
||||
subTitle='Getting started with adminlte-2-react'
|
||||
browserTitle='Demo Component'
|
||||
>
|
||||
<Row>
|
||||
<Col xs={12}>
|
||||
<Box
|
||||
title='A Box'
|
||||
type='primary'
|
||||
closable
|
||||
collapsable
|
||||
footer={<Button type='danger' text='Danger Button' />}
|
||||
>
|
||||
This is the View portion of the Demo Component. This view is
|
||||
controlled by the src/demo-component/index.js file.
|
||||
</Box>
|
||||
</Col>
|
||||
</Row>
|
||||
</Content>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default DemoComponent
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
This file is how you add new menu items to your site. It uses the Gatsby
|
||||
concept of Component Shadowing:
|
||||
https://www.gatsbyjs.org/blog/2019-04-29-component-shadowing/
|
||||
|
||||
It over-rides he default file in the gatsby-ipfs-web-wallet Theme.
|
||||
*/
|
||||
|
||||
import React from 'react'
|
||||
import { Sidebar } from 'adminlte-2-react'
|
||||
import DemoComponent from '../../demo-component'
|
||||
|
||||
const { Item } = Sidebar
|
||||
|
||||
const MenuComponents = [
|
||||
{
|
||||
key: 'Demo Component',
|
||||
component: <DemoComponent />,
|
||||
menuItem: <Item icon='fas-cog' key='Demo Component' text='Demo Component' />
|
||||
}
|
||||
]
|
||||
|
||||
export default MenuComponents
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
This file is intended to be overwritten. It provides a common place to store
|
||||
site configuration data.
|
||||
*/
|
||||
|
||||
const config = {
|
||||
title: 'Wallet Demo',
|
||||
titleShort: 'Demo',
|
||||
balanceText: 'BCH Balance',
|
||||
balanceIcon: 'fab-bitcoin'
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
Reference in New Issue
Block a user