[offers][fix] remove dark theme for table (#420)

pull/421/head
Zhang Ziqing 2 years ago committed by GitHub
parent b7f4cf93a0
commit 26055d2ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,7 +109,7 @@ export default function OffersTable({
function renderHeader() { function renderHeader() {
return ( return (
<thead className="bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"> <thead className="bg-gray-50 text-xs uppercase text-gray-700">
<tr> <tr>
{[ {[
'Company', 'Company',
@ -145,7 +145,7 @@ export default function OffersTable({
<Spinner display="block" size="lg" /> <Spinner display="block" size="lg" />
</div> </div>
) : ( ) : (
<table className="w-full text-left text-sm text-gray-500 dark:text-gray-400"> <table className="w-full text-left text-sm text-gray-500">
{renderHeader()} {renderHeader()}
<tbody> <tbody>
{offers.map((offer) => ( {offers.map((offer) => (

@ -19,13 +19,13 @@ export default function OffersTablePagination({
<nav <nav
aria-label="Table navigation" aria-label="Table navigation"
className="flex items-center justify-between p-4"> className="flex items-center justify-between p-4">
<span className="text-sm font-normal text-gray-500 dark:text-gray-400"> <span className="text-sm font-normal text-gray-500">
Showing Showing
<span className="font-semibold text-gray-900 dark:text-white"> <span className="font-semibold text-gray-900">
{` ${startNumber} - ${endNumber} `} {` ${startNumber} - ${endNumber} `}
</span> </span>
{`of `} {`of `}
<span className="font-semibold text-gray-900 dark:text-white"> <span className="font-semibold text-gray-900">
{pagination.totalItems} {pagination.totalItems}
</span> </span>
</span> </span>

Loading…
Cancel
Save