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() {
|
2018-09-11 09:16:57 -07:00
|
|
|
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);
|