diff --git a/client/src/components/organisms/AssetsUser.tsx b/client/src/components/organisms/AssetsUser.tsx index 6f22513..2663e07 100644 --- a/client/src/components/organisms/AssetsUser.tsx +++ b/client/src/components/organisms/AssetsUser.tsx @@ -7,7 +7,7 @@ import Asset from '../molecules/Asset' import styles from './AssetsUser.module.scss' export default class AssetsUser extends PureComponent< - { list?: boolean; recent?: boolean }, + { list?: boolean; recent?: number }, { results: any[]; isLoading: boolean } > { public state = { results: [], isLoading: true } @@ -61,28 +61,34 @@ export default class AssetsUser extends PureComponent< ) : this.state.results.length ? ( <> {this.state.results - .slice(0, this.props.recent ? 5 : undefined) - .filter(asset => !!asset) - .map((asset: any) => ( - - ))} - {this.props.recent && ( - - All Data Sets - - )} - - ) : ( -
-

No Data Sets Yet.

- + Publish A Data Set -
- )} - + .slice( + 0, + this.props.recent + ? this.props.recent + : undefined + ) + .filter(asset => !!asset) + .map((asset: any) => ( + + ))} + {this.props.recent && ( + + All Data Sets + + )} + + ) : ( +
+

No Data Sets Yet.

+ + Publish A Data Set +
+ )} + + ) ) } } diff --git a/client/src/routes/Details/AssetDetails.tsx b/client/src/routes/Details/AssetDetails.tsx index 74067c4..763d22a 100644 --- a/client/src/routes/Details/AssetDetails.tsx +++ b/client/src/routes/Details/AssetDetails.tsx @@ -25,13 +25,6 @@ export default class AssetDetails extends PureComponent { {base.copyrightHolder}
- - - {base.categories ? ( // TODO: Make this link to search for respective category @@ -40,9 +33,18 @@ export default class AssetDetails extends PureComponent { ) : ( Fake Category )} - - {base.files ? base.files.length : 0} data files + + + + + {base.files && ( + {base.files.length} data files + )}
diff --git a/client/src/routes/Home.tsx b/client/src/routes/Home.tsx index a63c39a..8a042a1 100644 --- a/client/src/routes/Home.tsx +++ b/client/src/routes/Home.tsx @@ -41,7 +41,7 @@ class Home extends Component { } /> - + ) }