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 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'
|
import styles from './Logo.module.css'
|
||||||
|
|
||||||
export default function Logo(): ReactElement {
|
export default function Logo({
|
||||||
return <LogoAsset className={styles.logo} />
|
noWordmark
|
||||||
|
}: {
|
||||||
|
noWordmark?: boolean
|
||||||
|
}): ReactElement {
|
||||||
|
return noWordmark ? (
|
||||||
|
<LogoAsset className={styles.logo} />
|
||||||
|
) : (
|
||||||
|
<LogoAssetFull className={styles.logo} />
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin-right: calc(var(--spacer) / 8);
|
margin-right: calc(var(--spacer) / 8);
|
||||||
margin-top: -0.2rem;
|
margin-top: -0.2rem;
|
||||||
|
background: var(--background-body);
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon svg {
|
.icon svg {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { ReactElement } from 'react'
|
import React, { ReactElement } from 'react'
|
||||||
import styles from './Token.module.css'
|
import styles from './Token.module.css'
|
||||||
import { ReactComponent as Logo } from '../../../../images/logo.svg'
|
|
||||||
import PriceUnit from '../../../atoms/Price/PriceUnit'
|
import PriceUnit from '../../../atoms/Price/PriceUnit'
|
||||||
|
import Logo from '../../../atoms/Logo'
|
||||||
|
|
||||||
export default function Token({
|
export default function Token({
|
||||||
symbol,
|
symbol,
|
||||||
@ -17,7 +17,7 @@ export default function Token({
|
|||||||
<figure
|
<figure
|
||||||
className={`${styles.icon} ${symbol} ${noIcon ? styles.noIcon : ''}`}
|
className={`${styles.icon} ${symbol} ${noIcon ? styles.noIcon : ''}`}
|
||||||
>
|
>
|
||||||
<Logo />
|
<Logo noWordmark />
|
||||||
</figure>
|
</figure>
|
||||||
<PriceUnit price={balance} symbol={symbol} small />
|
<PriceUnit price={balance} symbol={symbol} small />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user