mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
reorg
This commit is contained in:
parent
6c7427590c
commit
f0380351a8
@ -1,4 +1,4 @@
|
|||||||
.label {
|
.badge {
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
color: rgba(var(--foreground-rgb), 0.6);
|
color: rgba(var(--foreground-rgb), 0.6);
|
||||||
border: 1px solid rgba(var(--foreground-rgb), 0.15);
|
border: 1px solid rgba(var(--foreground-rgb), 0.15);
|
5
components/Badge/Badge.tsx
Normal file
5
components/Badge/Badge.tsx
Normal 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>
|
||||||
|
}
|
1
components/Badge/index.tsx
Normal file
1
components/Badge/index.tsx
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from './Badge'
|
@ -1,5 +0,0 @@
|
|||||||
import styles from './Label.module.css'
|
|
||||||
|
|
||||||
export function Label({ children }: { children: React.ReactNode }) {
|
|
||||||
return <span className={styles.label}>{children}</span>
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
export * from './Label'
|
|
@ -3,6 +3,6 @@ export * from './Footer'
|
|||||||
export * from './FormInline'
|
export * from './FormInline'
|
||||||
export * from './Header'
|
export * from './Header'
|
||||||
export * from './Input'
|
export * from './Input'
|
||||||
export * from './Label'
|
export * from './Badge'
|
||||||
export * from './Select'
|
export * from './Select'
|
||||||
export * from './TokenLogo'
|
export * from './TokenLogo'
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import { ratioOceanToAsi, ratioAgixToAsi, ratioFetToAsi } from '@/constants'
|
import { ratioOceanToAsi, ratioAgixToAsi, ratioFetToAsi } from '@/constants'
|
||||||
import styles from './MarketData.module.css'
|
import styles from './MarketData.module.css'
|
||||||
import { usePrices } from '@/features/prices'
|
import { usePrices } from '@/features/prices'
|
||||||
import { Label } from '@/components'
|
import { Badge } from '@/components'
|
||||||
|
|
||||||
export function MarketData() {
|
export function MarketData() {
|
||||||
const { prices, isValidating, isLoading } = usePrices()
|
const { prices, isValidating, isLoading } = usePrices()
|
||||||
@ -27,7 +27,7 @@ export function MarketData() {
|
|||||||
<li>
|
<li>
|
||||||
<p>
|
<p>
|
||||||
1 Fet = {ratioFetToAsi} ASI
|
1 Fet = {ratioFetToAsi} ASI
|
||||||
<Label>fixed</Label>
|
<Badge>fixed</Badge>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span className={`${styles.fiat} ${feedbackClasses}`}>
|
<span className={`${styles.fiat} ${feedbackClasses}`}>
|
||||||
@ -40,7 +40,7 @@ export function MarketData() {
|
|||||||
1 OCEAN ={' '}
|
1 OCEAN ={' '}
|
||||||
<span title={`${ratioOceanToAsi}`}>{ratioOceanToAsi.toFixed(6)}</span>{' '}
|
<span title={`${ratioOceanToAsi}`}>{ratioOceanToAsi.toFixed(6)}</span>{' '}
|
||||||
ASI
|
ASI
|
||||||
<Label>fixed</Label>
|
<Badge>fixed</Badge>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span className={`${styles.fiat} ${feedbackClasses}`}>
|
<span className={`${styles.fiat} ${feedbackClasses}`}>
|
||||||
@ -53,7 +53,7 @@ export function MarketData() {
|
|||||||
1 AGIX ={' '}
|
1 AGIX ={' '}
|
||||||
<span title={`${ratioAgixToAsi}`}>{ratioAgixToAsi.toFixed(5)}</span>{' '}
|
<span title={`${ratioAgixToAsi}`}>{ratioAgixToAsi.toFixed(5)}</span>{' '}
|
||||||
ASI
|
ASI
|
||||||
<Label>fixed</Label>
|
<Badge>fixed</Badge>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<span className={`${styles.fiat} ${feedbackClasses}`}>
|
<span className={`${styles.fiat} ${feedbackClasses}`}>
|
||||||
|
@ -14,6 +14,6 @@
|
|||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
color: rgb(var(--foreground-rgb-highlight));
|
color: rgb(var(--foreground-rgb-highlight));
|
||||||
min-height: 58px;
|
min-height: 66px;
|
||||||
line-height: 1.75;
|
line-height: 1.75;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user