2018-02-14 20:39:24 +01:00
|
|
|
import React from 'react';
|
2018-03-08 05:31:10 +01:00
|
|
|
import SEO from 'components/SEO/index';
|
|
|
|
import NavBar from 'containers/NavBar/index';
|
|
|
|
import ErrorPage from 'components/ErrorPage/index';
|
|
|
|
import AssetTitle from 'containers/AssetTitle/index';
|
|
|
|
import AssetDisplay from 'containers/AssetDisplay/index';
|
|
|
|
import AssetInfo from 'containers/AssetInfo/index';
|
2018-02-23 03:05:00 +01:00
|
|
|
|
2018-02-14 20:39:24 +01:00
|
|
|
class ShowAssetDetails extends React.Component {
|
|
|
|
render () {
|
|
|
|
const { asset } = this.props;
|
|
|
|
if (asset) {
|
2018-03-07 05:43:15 +01:00
|
|
|
const { claimData: { name } } = asset;
|
2018-02-14 20:39:24 +01:00
|
|
|
return (
|
|
|
|
<div>
|
2018-02-24 02:57:23 +01:00
|
|
|
<SEO pageTitle={`${name} - details`} asset={asset} />
|
2018-02-23 03:05:00 +01:00
|
|
|
<NavBar />
|
|
|
|
<div className='row row--tall row--padded'>
|
|
|
|
<div className='column column--10'>
|
2018-02-14 20:39:24 +01:00
|
|
|
<AssetTitle />
|
|
|
|
</div>
|
2018-02-23 03:05:00 +01:00
|
|
|
<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'>
|
2018-02-14 20:39:24 +01:00
|
|
|
<AssetDisplay />
|
|
|
|
</div>
|
2018-02-23 03:05:00 +01:00
|
|
|
</div><div className='column column--5 column--sml-10 align-content-top'>
|
|
|
|
<div className='row row--padded'>
|
|
|
|
<AssetInfo />
|
|
|
|
</div>
|
2018-02-14 20:39:24 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
return (
|
2018-02-23 03:05:00 +01:00
|
|
|
<ErrorPage error={'loading asset data...'} />
|
2018-02-14 20:39:24 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default ShowAssetDetails;
|