mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Added create date for each asset card (#308)
* Added create/ update data for each asset card * Code climate test fix * Code styled after lint run * Date moved to asset card footer Co-authored-by: Claudia Holhos <holhos_claudia2001@yahoo.com>
This commit is contained in:
parent
b5f6f9c9c1
commit
d1523a9065
@ -40,6 +40,9 @@
|
|||||||
|
|
||||||
.foot {
|
.foot {
|
||||||
margin-top: calc(var(--spacer) / 4);
|
margin-top: calc(var(--spacer) / 4);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.foot p {
|
.foot p {
|
||||||
@ -61,3 +64,8 @@
|
|||||||
.symbol {
|
.symbol {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.date {
|
||||||
|
font-size: var(--font-size-mini);
|
||||||
|
margin-top: calc(var(--spacer) / 2);
|
||||||
|
}
|
@ -8,6 +8,7 @@ import removeMarkdown from 'remove-markdown'
|
|||||||
import Tooltip from '../atoms/Tooltip'
|
import Tooltip from '../atoms/Tooltip'
|
||||||
import Publisher from '../atoms/Publisher'
|
import Publisher from '../atoms/Publisher'
|
||||||
import { useMetadata } from '@oceanprotocol/react'
|
import { useMetadata } from '@oceanprotocol/react'
|
||||||
|
import Time from '../atoms/Time'
|
||||||
|
|
||||||
declare type AssetTeaserProps = {
|
declare type AssetTeaserProps = {
|
||||||
ddo: DDO
|
ddo: DDO
|
||||||
@ -46,6 +47,9 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({ ddo }: AssetTeaserProps) => {
|
|||||||
|
|
||||||
<footer className={styles.foot}>
|
<footer className={styles.foot}>
|
||||||
<Price ddo={ddo} small />
|
<Price ddo={ddo} small />
|
||||||
|
<p className={styles.date}>
|
||||||
|
<Time date={ddo?.created} relative />
|
||||||
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
</Link>
|
</Link>
|
||||||
</article>
|
</article>
|
||||||
|
Loading…
Reference in New Issue
Block a user