spee.ch/react/components/ShowAssetLite/index.js

27 lines
794 B
JavaScript
Raw Normal View History

import React from 'react';
2018-01-31 00:32:42 +01:00
import { Link } from 'react-router-dom';
import AssetDisplay from 'components/AssetDisplay';
class ShowLite extends React.Component {
render () {
return (
<div className="row row--tall flex-container--column flex-container--center-center">
{this.props.error &&
<p>{this.props.error}</p>
2018-01-31 00:32:42 +01:00
}
{this.props.claimData &&
2018-01-31 00:32:42 +01:00
<div>
<AssetDisplay
claimName={this.props.claimData.name}
claimId={this.props.claimData.claimId}
2018-01-31 00:32:42 +01:00
/>
<Link id="asset-boilerpate" className="link--primary fine-print" to={`/${this.props.claimData.claimId}/${this.props.claimData.name}`}>hosted via Spee.ch</Link>
2018-01-31 00:32:42 +01:00
</div>
}
</div>
);
}
};
export default ShowLite;