2018-01-30 18:00:02 +01:00
|
|
|
import React from 'react';
|
2018-03-08 18:26:33 +01:00
|
|
|
import SEO from 'components/SEO';
|
2018-03-16 21:03:54 +01:00
|
|
|
import ErrorPage from 'pages/ErrorPage';
|
2018-03-08 18:26:33 +01:00
|
|
|
import NavBar from 'containers/NavBar';
|
|
|
|
import ChannelClaimsDisplay from 'containers/ChannelClaimsDisplay';
|
2018-02-23 03:05:00 +01:00
|
|
|
|
2018-01-30 18:00:02 +01:00
|
|
|
class ShowChannel extends React.Component {
|
|
|
|
render () {
|
2018-02-13 03:18:56 +01:00
|
|
|
const { channel } = this.props;
|
2018-02-09 01:42:13 +01:00
|
|
|
if (channel) {
|
2018-02-13 03:18:56 +01:00
|
|
|
const { name, longId, shortId } = channel;
|
2018-02-09 01:42:13 +01:00
|
|
|
return (
|
|
|
|
<div>
|
2018-02-24 02:57:23 +01:00
|
|
|
<SEO pageTitle={name} channel={channel} />
|
2018-02-23 03:05:00 +01:00
|
|
|
<NavBar />
|
|
|
|
<div className='row row--tall row--padded'>
|
|
|
|
<div className='column column--10'>
|
2018-02-24 02:57:23 +01:00
|
|
|
<h2>channel name: {name}</h2>
|
|
|
|
<p className={'fine-print'}>full channel id: {longId}</p>
|
|
|
|
<p className={'fine-print'}>short channel id: {shortId}</p>
|
2018-02-09 01:42:13 +01:00
|
|
|
</div>
|
2018-02-23 03:05:00 +01:00
|
|
|
<div className='column column--10'>
|
2018-02-13 03:18:56 +01:00
|
|
|
<ChannelClaimsDisplay />
|
2018-02-09 01:42:13 +01:00
|
|
|
</div>
|
2018-01-30 18:00:02 +01:00
|
|
|
</div>
|
2018-02-07 20:30:39 +01:00
|
|
|
</div>
|
2018-02-09 01:42:13 +01:00
|
|
|
);
|
|
|
|
};
|
|
|
|
return (
|
2018-02-23 03:05:00 +01:00
|
|
|
<ErrorPage error={'loading channel data...'} />
|
2018-01-30 18:00:02 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ShowChannel;
|