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:
commit
1e592497ae
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user