spee.ch/client/containers/ShowAssetDetails/view.jsx

42 lines
1.3 KiB
React
Raw Normal View History

import React from 'react';
2018-03-08 18:26:33 +01:00
import SEO from 'components/SEO';
import NavBar from 'containers/NavBar';
2018-03-16 21:03:54 +01:00
import ErrorPage from 'pages/ErrorPage';
2018-03-08 18:26:33 +01:00
import AssetTitle from 'containers/AssetTitle';
import AssetDisplay from 'containers/AssetDisplay';
import AssetInfo from 'containers/AssetInfo';
class ShowAssetDetails extends React.Component {
render () {
const { asset } = this.props;
if (asset) {
2018-03-07 05:43:15 +01:00
const { claimData: { name } } = asset;
return (
<div>
<SEO pageTitle={`${name} - details`} asset={asset} />
<NavBar />
<div className='row row--tall row--padded'>
<div className='column column--10'>
<AssetTitle />
</div>
<div className='column column--5 column--sml-10 align-content-top'>
2018-02-27 02:00:54 +01:00
<div className='row row--padded show-details-container'>
<AssetDisplay />
</div>
</div><div className='column column--5 column--sml-10 align-content-top'>
<div className='row row--padded'>
<AssetInfo />
</div>
</div>
</div>
</div>
);
};
return (
<ErrorPage error={'loading asset data...'} />
);
}
};
export default ShowAssetDetails;