zcash-grant-system/frontend/client/pages/proposal.tsx

25 lines
603 B
TypeScript
Raw Normal View History

2018-09-10 09:55:26 -07:00
import React, { Component } from 'react';
import Web3Page from 'components/Web3Page';
import Proposal from 'components/Proposal';
import { WithRouterProps, withRouter } from 'next/router';
type RouteProps = WithRouterProps;
class ProposalPage extends Component<RouteProps> {
constructor(props: RouteProps) {
super(props);
}
render() {
const proposalId = this.props.router.query.id as string;
2018-09-10 09:55:26 -07:00
return (
<Web3Page
title={`Proposal ${proposalId}`}
render={() => <Proposal proposalId={proposalId} />}
/>
);
}
}
export default withRouter(ProposalPage);