spee.ch/react/containers/ShowAssetLite/view.jsx

29 lines
890 B
React
Raw Normal View History

import React from 'react';
2018-03-08 18:26:33 +01:00
import SEO from 'components/SEO';
import { Link } from 'react-router-dom';
2018-03-08 18:26:33 +01:00
import AssetDisplay from 'containers/AssetDisplay';
class ShowLite extends React.Component {
render () {
const { asset } = this.props;
if (asset) {
2018-02-23 20:00:46 +01:00
const { name, claimId } = asset.claimData;
return (
2018-02-27 02:00:54 +01:00
<div className='row row--tall flex-container--column flex-container--center-center show-lite-container'>
<SEO pageTitle={name} asset={asset} />
<AssetDisplay />
<Link id='asset-boilerpate' className='link--primary fine-print' to={`/${claimId}/${name}`}>hosted
via Spee.ch</Link>
</div>
);
}
return (
<div className='row row--tall row--padded flex-container--column flex-container--center-center'>
<p>loading asset data...</p>
</div>
);
}
};
export default ShowLite;