mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
logo fixes
This commit is contained in:
parent
cf3f406547
commit
74dc5b8081
@ -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} />
|
||||
)
|
||||
}
|
||||
|
@ -18,6 +18,7 @@
|
||||
vertical-align: middle;
|
||||
margin-right: calc(var(--spacer) / 8);
|
||||
margin-top: -0.2rem;
|
||||
background: var(--background-body);
|
||||
}
|
||||
|
||||
.icon svg {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user