mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
show web3 message on asset loading failure
This commit is contained in:
parent
33b14bc8e3
commit
97a5f39b5e
@ -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 ? (
|
||||
<Content>
|
||||
<div className={styles.error}>{error}</div>
|
||||
<Web3message />
|
||||
</Content>
|
||||
) : (
|
||||
<Route
|
||||
title={metadata.base.name}
|
||||
|
Loading…
Reference in New Issue
Block a user