1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

message changed for no network selected (#809)

This commit is contained in:
claudiaHash 2021-08-24 16:43:56 +03:00 committed by GitHub
parent bccb56a181
commit 9b0590384c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import { DDO } from '@oceanprotocol/lib'
import classNames from 'classnames/bind'
import { getAssetsBestPrices, AssetListPrices } from '../../utils/subgraph'
import Loader from '../atoms/Loader'
import { useUserPreferences } from '../../providers/UserPreferences'
const cx = classNames.bind(styles)
@ -36,6 +37,7 @@ const AssetList: React.FC<AssetListProps> = ({
onPageChange,
className
}) => {
const { chainIds } = useUserPreferences()
const [assetsWithPrices, setAssetWithPrices] = useState<AssetListPrices[]>()
const [loading, setLoading] = useState<boolean>(true)
@ -71,6 +73,8 @@ const AssetList: React.FC<AssetListProps> = ({
key={assetWithPrice.ddo.id}
/>
))
) : chainIds.length === 0 ? (
<div className={styles.empty}>No network selected.</div>
) : (
<div className={styles.empty}>No results found.</div>
)}