@@ -156,7 +156,6 @@ const YugiohCardDataTable = ( { matchedCardData, setMatchedCardData } ) => {
156156 rarity : card ?. rarity ,
157157 condition : card ?. condition ,
158158 marketPrice : data ?. marketPrice ,
159- lowPrice : data ?. lowPrice ,
160159 quantity : 1 ,
161160 } ) ) ;
162161
@@ -189,7 +188,7 @@ const YugiohCardDataTable = ( { matchedCardData, setMatchedCardData } ) => {
189188 setNotification ( { show : true , message : 'No cards selected to download!' } ) ;
190189 return ;
191190 }
192- const headers = [ "Name" , "Set" , "Number" , "Printing" , "Rarity" , "Condition" , "Market Price" , "Low Price" ] ;
191+ const headers = [ "Name" , "Set" , "Number" , "Printing" , "Rarity" , "Condition" , "Market Price" ] ;
193192 const rows = matchedCardData
194193 . filter ( ( _ , index ) => selectedKeys . has ( itemUniqueIds [ index ] ) )
195194 . map ( ( { card, data } ) => [
@@ -200,7 +199,6 @@ const YugiohCardDataTable = ( { matchedCardData, setMatchedCardData } ) => {
200199 card ?. rarity ,
201200 card ?. condition ,
202201 data ?. marketPrice ,
203- data ?. lowPrice ,
204202 ] ) ;
205203 const csvBody = headers . join ( "|" ) + "\n" +
206204 rows . map ( ( r ) => r . map ( ( v ) => `"${ v } "` ) . join ( "|" ) ) . join ( "\n" ) ;
@@ -277,7 +275,6 @@ const YugiohCardDataTable = ( { matchedCardData, setMatchedCardData } ) => {
277275 { key : 'rarity' , label : 'Rarity' } ,
278276 { key : 'condition' , label : 'Condition' } ,
279277 { key : 'marketPrice' , label : 'Market Price' } ,
280- { key : 'lowPrice' , label : 'Low Price' } ,
281278 ] . map ( ( { key, label } ) => (
282279 < th
283280 key = { key }
@@ -299,42 +296,39 @@ const YugiohCardDataTable = ( { matchedCardData, setMatchedCardData } ) => {
299296 </ tr >
300297 </ thead >
301298
302- < tbody className = "bg-white divide-y divide-gray-300 text-black px-1 py-1 mx-auto" >
299+ < tbody className = " glass text-shadow divide-y divide-gray-300 text-white px-1 py-1 mx-auto" >
303300 { sortedAndPaginatedData . currentItems . map ( ( { item, originalIndex } ) => {
304301 const uniqueId = itemUniqueIds [ originalIndex ] ;
305302 const isSelected = selectedKeys . has ( uniqueId ) ;
306303 const { card, data } = item ;
307304
308305 return (
309- < tr key = { uniqueId } className = "hover:bg-gray-100 " >
306+ < tr key = { uniqueId } className = "hover:bg-gray-600 " >
310307 < td className = "text-center border border-gray-300" >
311308 < input
312309 type = "checkbox"
313310 checked = { isSelected }
314311 onChange = { ( e ) => toggleCheckbox ( e , uniqueId ) }
315312 />
316313 </ td >
317- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
314+ < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-white hover:bg-black hover:text-white" >
318315 { card ?. productName || 'N/A' }
319316 </ td >
320- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
317+ < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-white hover:bg-black hover:text-white" >
321318 { card ?. setName || 'N/A' }
322319 </ td >
323- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
320+ < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-white hover:bg-black hover:text-white" >
324321 { card ?. number || 'N/A' }
325322 </ td >
326- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
323+ < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-white hover:bg-black hover:text-white" >
327324 { card ?. rarity || 'N/A' }
328325 </ td >
329- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
326+ < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-white hover:bg-black hover:text-white" >
330327 { card ?. condition || 'N/A' }
331328 </ td >
332- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
329+ < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-white hover:bg-black hover:text-white" >
333330 { formatPrice ( data ?. marketPrice ) }
334331 </ td >
335- < td className = "p-2 text-center border-t border-gray-100 text-xs lg:text-sm sm:text-left text-black hover:bg-black hover:text-white" >
336- { formatPrice ( data ?. lowPrice ) }
337- </ td >
338332 </ tr >
339333 ) ;
340334 } ) }
0 commit comments