Skip to content

Commit

Permalink
The configuration has a better setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitardanailov committed May 29, 2024
1 parent f0c9297 commit 667440f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
18 changes: 12 additions & 6 deletions apps/website/src/app/demos/dashboard-trade/Components/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,25 @@ const CoingeckoTableRow: FC<Props> = ({item}) => {
<span>({formatter.format(historicPrice.usd)})</span>
</PriceComparing>
</TableCell>
<TableCell width={dimensions.btc.price.width}>{item.btc}</TableCell>
<TableCell width={dimensions.btc.price.width}>
{item.btc !== 1 && item.btc.toFixed(5)}
</TableCell>
<TableCell width={dimensions.btc.priceChanged.width}>
<PriceComparing percent={item.btc_24h_change}>
<span>{pricePercentFormat(item.btc_24h_change)}</span>
<span>({historicPrice.btc})</span>
<span title={historicPrice.btc.toString()}>
{pricePercentFormat(item.btc_24h_change)}
</span>
</PriceComparing>
</TableCell>
<TableCell width={dimensions.eth.price.width}>{item.eth}</TableCell>
<TableCell width={dimensions.eth.price.width}>
{item.eth !== 1 && item.eth.toFixed(5)}
</TableCell>
<TableCell width={dimensions.eth.priceChanged.width}>
<PriceComparing percent={item.eth_24h_change}>
<CoinbaseIcon cryptoCurrency={item.cryptoCurrency} />
<span>{pricePercentFormat(item.eth_24h_change)}</span>
<span>({historicPrice.eth})</span>
<span title={historicPrice.eth.toString()}>
{pricePercentFormat(item.eth_24h_change)}
</span>
</PriceComparing>
</TableCell>
</TableRow>
Expand Down
8 changes: 4 additions & 4 deletions apps/website/src/app/demos/dashboard-trade/setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ export const dimensions = {
},
usd: {
price: {
width: '8.5%',
width: '12.5%',
},
priceChanged: {
width: '14%',
width: '20%',
},
},
btc: {
price: {
width: '10.5%',
},
priceChanged: {
width: '24.25%',
width: '19.25%',
},
},
eth: {
price: {
width: '10.5%',
},
priceChanged: {
width: '24.25%',
width: '19.25%',
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const TableRow = styled.div`
align-items: center;
border-bottom: 1px solid #cecece;
justify-content: flex-start;
padding: 0.5rem 0;
`

export default TableRow

0 comments on commit 667440f

Please sign in to comment.