@@ -58,13 +58,9 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
5858 const exchangeColumns = [
5959 {
6060 header : 'Exchange' ,
61- cellClassName : ' text-green-500 font-bold' ,
61+ cellClassName : 'text-green-500 font-bold' ,
6262 cell : ( ticker : Ticker ) => (
63- < Link
64- href = { ticker . trade_url }
65- target = '_blank'
66- className = 'exchange-link'
67- >
63+ < Link href = { ticker . trade_url } target = '_blank' className = 'exchange-link' >
6864 { ticker . market . name }
6965 </ Link >
7066 ) ,
@@ -73,11 +69,8 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
7369 header : 'Pair' ,
7470 cell : ( ticker : Ticker ) => (
7571 < div className = 'exchange-pair' >
76- < p className = 'truncate max-w-[100px] h-full' > { ticker . base } </ p >
77- /
78- < p className = 'truncate max-w-[100px] h-full ml-2' >
79- { ticker . target }
80- </ p >
72+ < p className = 'truncate max-w-[100px] h-full' > { ticker . base } </ p > /
73+ < p className = 'truncate max-w-[100px] h-full ml-2' > { ticker . target } </ p >
8174 </ div >
8275 ) ,
8376 } ,
@@ -88,6 +81,7 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
8881 } ,
8982 {
9083 header : 'Last Traded' ,
84+ headClassName : 'text-end' ,
9185 cellClassName : 'exchange-timestamp' ,
9286 cell : ( ticker : Ticker ) => timeAgo ( ticker . timestamp ) ,
9387 } ,
@@ -109,24 +103,19 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
109103 columns = { exchangeColumns }
110104 data = { coinData . tickers . slice ( 0 , 7 ) }
111105 rowKey = { ( _ , index ) => index }
112- headerClassName = 'text-purple-100'
113- headerRowClassName = 'hover:bg-transparent'
114- bodyRowClassName = 'overflow-hidden rounded-lg hover:bg-dark-400/30!'
115106 />
116107 </ div >
117108 </ div >
118109 </ LiveDataWrapper >
119110 </ section >
120111
121112 < section className = 'size-full max-lg:mt-8 lg:col-span-1' >
122- { /* Converter */ }
123113 < Converter
124114 symbol = { coinData . symbol }
125115 icon = { coinData . image . small }
126116 priceList = { coinData . market_data . current_price }
127117 />
128118
129- { /* Coin Details */ }
130119 < div className = 'w-full mt-8 space-y-4' >
131120 < h4 className = 'section-title pb-3' > Coin Details</ h4 >
132121 < div className = 'coin-details-grid' >
@@ -148,7 +137,6 @@ const CoinDetails = async ({ params }: { params: Promise<{ id: string }> }) => {
148137 </ div >
149138 </ div >
150139
151- { /* Top Gainers / Losers */ }
152140 < TopGainersLosers />
153141 </ section >
154142 </ main >
0 commit comments