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

logo fixes

This commit is contained in:
Matthias Kretschmann 2020-10-30 22:00:57 +01:00
parent cf3f406547
commit 74dc5b8081
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 15 additions and 5 deletions

View File

@ -1,7 +1,16 @@
import React, { ReactElement } from 'react'
import { ReactComponent as LogoAsset } from '@oceanprotocol/art/logo/logo.svg'
import { ReactComponent as LogoAssetFull } from '@oceanprotocol/art/logo/logo.svg'
import { ReactComponent as LogoAsset } from '../../images/logo.svg'
import styles from './Logo.module.css'
export default function Logo(): ReactElement {
return <LogoAsset className={styles.logo} />
export default function Logo({
noWordmark
}: {
noWordmark?: boolean
}): ReactElement {
return noWordmark ? (
<LogoAsset className={styles.logo} />
) : (
<LogoAssetFull className={styles.logo} />
)
}

View File

@ -18,6 +18,7 @@
vertical-align: middle;
margin-right: calc(var(--spacer) / 8);
margin-top: -0.2rem;
background: var(--background-body);
}
.icon svg {

View File

@ -1,7 +1,7 @@
import React, { ReactElement } from 'react'
import styles from './Token.module.css'
import { ReactComponent as Logo } from '../../../../images/logo.svg'
import PriceUnit from '../../../atoms/Price/PriceUnit'
import Logo from '../../../atoms/Logo'
export default function Token({
symbol,
@ -17,7 +17,7 @@ export default function Token({
<figure
className={`${styles.icon} ${symbol} ${noIcon ? styles.noIcon : ''}`}
>
<Logo />
<Logo noWordmark />
</figure>
<PriceUnit price={balance} symbol={symbol} small />
</div>