Skip to content

Commit bc52e98

Browse files
committed
move column
1 parent 17bbd3e commit bc52e98

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

docs/snippets/CurrentPricesTable.jsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -331,23 +331,23 @@ export const CurrentPricesTable = () => {
331331
<tr style={{ backgroundColor: '#f5f5f5' }}>
332332
<th
333333
style={{
334-
padding: '8px 6px 8px 0',
335-
textAlign: 'left',
334+
padding: '8px 10px',
335+
textAlign: 'right',
336336
border: '1px solid #ddd',
337337
fontSize: '0.9em',
338338
}}
339339
>
340-
Product
340+
Current Price
341341
</th>
342342
<th
343343
style={{
344-
padding: '8px 10px',
345-
textAlign: 'right',
344+
padding: '8px 6px 8px 0',
345+
textAlign: 'left',
346346
border: '1px solid #ddd',
347347
fontSize: '0.9em',
348348
}}
349349
>
350-
Base Price
350+
Product
351351
</th>
352352
<th
353353
style={{
@@ -357,7 +357,7 @@ export const CurrentPricesTable = () => {
357357
fontSize: '0.9em',
358358
}}
359359
>
360-
Max Price
360+
Base Price
361361
</th>
362362
<th
363363
style={{
@@ -367,7 +367,7 @@ export const CurrentPricesTable = () => {
367367
fontSize: '0.9em',
368368
}}
369369
>
370-
Current Price
370+
Max Price
371371
</th>
372372
</tr>
373373
</thead>
@@ -390,24 +390,25 @@ export const CurrentPricesTable = () => {
390390
<tr key={productId}>
391391
<td
392392
style={{
393-
padding: '8px 6px 8px 0',
393+
padding: '8px 10px',
394+
textAlign: 'right',
394395
border: '1px solid #ddd',
395-
fontWeight: '500',
396-
fontSize: '0.9em',
396+
fontFamily: 'monospace',
397+
fontWeight: '600',
398+
fontSize: '0.85em',
397399
}}
398400
>
399-
{PRODUCT_NAMES[productId]}
401+
{formatPrice(currentPriceInTokens, currentPriceInUSD)}
400402
</td>
401403
<td
402404
style={{
403-
padding: '8px 10px',
404-
textAlign: 'right',
405+
padding: '8px 6px 8px 0',
405406
border: '1px solid #ddd',
406-
fontFamily: 'monospace',
407-
fontSize: '0.85em',
407+
fontWeight: '500',
408+
fontSize: '0.9em',
408409
}}
409410
>
410-
{formatPrice(basePriceInTokens, basePriceInUSD)}
411+
{PRODUCT_NAMES[productId]}
411412
</td>
412413
<td
413414
style={{
@@ -418,19 +419,18 @@ export const CurrentPricesTable = () => {
418419
fontSize: '0.85em',
419420
}}
420421
>
421-
{formatPrice(maxPriceInTokens, maxPriceInUSD)}
422+
{formatPrice(basePriceInTokens, basePriceInUSD)}
422423
</td>
423424
<td
424425
style={{
425426
padding: '8px 10px',
426427
textAlign: 'right',
427428
border: '1px solid #ddd',
428429
fontFamily: 'monospace',
429-
fontWeight: '600',
430430
fontSize: '0.85em',
431431
}}
432432
>
433-
{formatPrice(currentPriceInTokens, currentPriceInUSD)}
433+
{formatPrice(maxPriceInTokens, maxPriceInUSD)}
434434
</td>
435435
</tr>
436436
);

0 commit comments

Comments
 (0)