diff --git a/client/src/routes/Search.module.scss b/client/src/routes/Search.module.scss index ff69462..eccc96f 100644 --- a/client/src/routes/Search.module.scss +++ b/client/src/routes/Search.module.scss @@ -24,3 +24,9 @@ grid-template-columns: repeat(3, 1fr); } } + +.empty { + text-align: center; + margin-top: $spacer * 4; + color: $brand-grey-light; +} diff --git a/client/src/routes/Search.tsx b/client/src/routes/Search.tsx index fc78562..5593a61 100644 --- a/client/src/routes/Search.tsx +++ b/client/src/routes/Search.tsx @@ -1,4 +1,5 @@ import React, { PureComponent } from 'react' +import { Link } from 'react-router-dom' import queryString from 'query-string' import { History, Location } from 'history' import { Logger } from '@oceanprotocol/squid' @@ -123,7 +124,10 @@ export default class Search extends PureComponent { ))} ) : ( -
No data sets found.
+
+

No Data Sets Found.

+ + Publish A Data Set +
) public render() { @@ -132,16 +136,16 @@ export default class Search extends PureComponent { return ( - {totalResults > 0 && ( -

${decodeURIComponent( + {!this.state.isLoading && ( +

+ {totalResults} results for{' '} + + {decodeURIComponent( this.state.searchTerm || this.state.searchCategories - )}` - }} - /> + )} + +

)} {this.renderResults()}