mirror of
https://github.com/status-im/liquid-funding.git
synced 2025-02-19 22:58:16 +00:00
add Pledges component
This commit is contained in:
parent
20fc46c64a
commit
b3ecab0fe4
@ -34,6 +34,7 @@ const Projects = lazy(() => import('./projects/Projects'))
|
|||||||
const Project = lazy(() => import('./projects/Project'))
|
const Project = lazy(() => import('./projects/Project'))
|
||||||
const FundProject = lazy(() => import('./projects/FundProject'))
|
const FundProject = lazy(() => import('./projects/FundProject'))
|
||||||
const BackProject = lazy(() => import('./projects/BackProject'))
|
const BackProject = lazy(() => import('./projects/BackProject'))
|
||||||
|
const Pledges = lazy(() => import('./Pledges'))
|
||||||
const ProjectPledges = lazy(() => import('./projects/ProjectPledges'))
|
const ProjectPledges = lazy(() => import('./projects/ProjectPledges'))
|
||||||
const CreateProject = lazy(() => import('./projects/CreateProject'))
|
const CreateProject = lazy(() => import('./projects/CreateProject'))
|
||||||
const CreateDelegate = lazy(() => import('./projects/CreateDelegate'))
|
const CreateDelegate = lazy(() => import('./projects/CreateDelegate'))
|
||||||
@ -282,6 +283,7 @@ function PersistentDrawerLeft({ loading, account, children, enableEthereum, loca
|
|||||||
<Route path="/create-delegate/" component={CreateDelegate} />
|
<Route path="/create-delegate/" component={CreateDelegate} />
|
||||||
<Route path="/(back-delegate|back-project)/:id" component={BackProject} />
|
<Route path="/(back-delegate|back-project)/:id" component={BackProject} />
|
||||||
<Route path="/project-pledges/:id" component={ProjectPledges} />
|
<Route path="/project-pledges/:id" component={ProjectPledges} />
|
||||||
|
<Route path="/pledges/:id" component={Pledges} />
|
||||||
<Route path="/console" render={() => <Console logs={logs} variant="dark" />} />
|
<Route path="/console" render={() => <Console logs={logs} variant="dark" />} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
59
src/components/Pledges.jsx
Normal file
59
src/components/Pledges.jsx
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
import React, { Fragment } from 'react'
|
||||||
|
import classnames from 'classnames'
|
||||||
|
import Typography from '@material-ui/core/Typography'
|
||||||
|
import { makeStyles } from '@material-ui/core/styles'
|
||||||
|
|
||||||
|
const styles = () => ({
|
||||||
|
main: {
|
||||||
|
display: 'grid',
|
||||||
|
gridTemplateColumns: 'repeat(48, [col] 1fr)',
|
||||||
|
gridTemplateRows: '4rem 4rem 3rem 0.5fr 1fr 0.3fr'
|
||||||
|
},
|
||||||
|
tableHeader: {
|
||||||
|
color: 'rgba(147, 155, 161, 0.8)',
|
||||||
|
fontSize: '0.9rem',
|
||||||
|
gridRow: '4 / 5'
|
||||||
|
},
|
||||||
|
headerStatus: {
|
||||||
|
gridColumn: '3 / 12'
|
||||||
|
},
|
||||||
|
headerAmount: {
|
||||||
|
gridColumn: '12 / 30'
|
||||||
|
},
|
||||||
|
headerId: {
|
||||||
|
gridColumn: '30 / 35'
|
||||||
|
},
|
||||||
|
headerFunded: {
|
||||||
|
gridColumn: '35 / 40'
|
||||||
|
},
|
||||||
|
headerSelect: {
|
||||||
|
gridColumn: '40 / 44'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const useStyles = makeStyles(styles)
|
||||||
|
|
||||||
|
function TableHeader() {
|
||||||
|
const classes = useStyles()
|
||||||
|
const { tableHeader } = classes
|
||||||
|
return (
|
||||||
|
<Fragment>
|
||||||
|
<Typography className={classnames(tableHeader, classes.headerStatus)}>Status</Typography>
|
||||||
|
<Typography className={classnames(tableHeader, classes.headerAmount)}>Amount</Typography>
|
||||||
|
<Typography className={classnames(tableHeader, classes.headerId)}>Pledge ID</Typography>
|
||||||
|
<Typography className={classnames(tableHeader, classes.headerFunded)}>Funded on</Typography>
|
||||||
|
<Typography className={classnames(tableHeader, classes.headerSelect)}>Select all</Typography>
|
||||||
|
</Fragment>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Pledges() {
|
||||||
|
const classes = useStyles()
|
||||||
|
return (
|
||||||
|
<div className={classes.main}>
|
||||||
|
<TableHeader />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Pledges
|
Loading…
x
Reference in New Issue
Block a user