1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

Merge pull request #198 from oceanprotocol/fix/asset-details-loading

show web3 message on asset loading failure
This commit is contained in:
Matthias Kretschmann 2019-09-24 16:26:05 +02:00 committed by GitHub
commit 1e592497ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -9,4 +9,11 @@
width: fit-content;
color: $brand-white;
font-weight: $font-weight-bold;
&,
+ div {
max-width: 30rem;
margin-left: auto;
margin-right: auto;
}
}

View File

@ -9,6 +9,7 @@ import Content from '../../atoms/Content'
import CategoryImage from '../../atoms/CategoryImage'
import styles from './index.module.scss'
import withTracker from '../../../hoc/withTracker'
import Web3message from '../../organisms/Web3message'
interface AssetProps {
match: {
@ -61,7 +62,10 @@ class Asset extends Component<AssetProps, AssetState> {
<Spinner message="Loading asset..." />
</div>
) : hasError ? (
<div className={styles.error}>{error}</div>
<Content>
<div className={styles.error}>{error}</div>
<Web3message />
</Content>
) : (
<Route
title={metadata.base.name}