This commit is contained in:
Matthias Kretschmann 2024-04-06 22:53:29 +01:00
parent 6c7427590c
commit f0380351a8
Signed by: m
GPG Key ID: 606EEEF3C479A91F
8 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
.label {
.badge {
font-size: 0.75rem;
color: rgba(var(--foreground-rgb), 0.6);
border: 1px solid rgba(var(--foreground-rgb), 0.15);

View File

@ -0,0 +1,5 @@
import styles from './Badge.module.css'
export function Badge({ children }: { children: React.ReactNode }) {
return <span className={styles.badge}>{children}</span>
}

View File

@ -0,0 +1 @@
export * from './Badge'

View File

@ -1,5 +0,0 @@
import styles from './Label.module.css'
export function Label({ children }: { children: React.ReactNode }) {
return <span className={styles.label}>{children}</span>
}

View File

@ -1 +0,0 @@
export * from './Label'

View File

@ -3,6 +3,6 @@ export * from './Footer'
export * from './FormInline'
export * from './Header'
export * from './Input'
export * from './Label'
export * from './Badge'
export * from './Select'
export * from './TokenLogo'

View File

@ -3,7 +3,7 @@
import { ratioOceanToAsi, ratioAgixToAsi, ratioFetToAsi } from '@/constants'
import styles from './MarketData.module.css'
import { usePrices } from '@/features/prices'
import { Label } from '@/components'
import { Badge } from '@/components'
export function MarketData() {
const { prices, isValidating, isLoading } = usePrices()
@ -27,7 +27,7 @@ export function MarketData() {
<li>
<p>
1 Fet = {ratioFetToAsi} ASI
<Label>fixed</Label>
<Badge>fixed</Badge>
</p>
<p>
<span className={`${styles.fiat} ${feedbackClasses}`}>
@ -40,7 +40,7 @@ export function MarketData() {
1 OCEAN ={' '}
<span title={`${ratioOceanToAsi}`}>{ratioOceanToAsi.toFixed(6)}</span>{' '}
ASI
<Label>fixed</Label>
<Badge>fixed</Badge>
</p>
<p>
<span className={`${styles.fiat} ${feedbackClasses}`}>
@ -53,7 +53,7 @@ export function MarketData() {
1 AGIX ={' '}
<span title={`${ratioAgixToAsi}`}>{ratioAgixToAsi.toFixed(5)}</span>{' '}
ASI
<Label>fixed</Label>
<Badge>fixed</Badge>
</p>
<p>
<span className={`${styles.fiat} ${feedbackClasses}`}>

View File

@ -14,6 +14,6 @@
margin-bottom: 1.5rem;
font-size: 1.2rem;
color: rgb(var(--foreground-rgb-highlight));
min-height: 58px;
min-height: 66px;
line-height: 1.75;
}