Improved pagination for the dark mode (#2761)

* improved pagination for the dark mode

* changed the adding class pattern to make code more readable
This commit is contained in:
Manish Kushare 2022-04-08 22:02:05 +05:30 committed by GitHub
parent 769be2530c
commit 9fd35991dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ export const Pagination = function Pagination({ currentPage, count, pageChanged,
}
return (
<div className="card-footer d-flex align-items-center px-1">
<div className={`card-footer d-flex align-items-center px-1 ${darkMode ? ' bg-transparent' : ''}`}>
<p className={`m-0 ${darkMode ? 'text-white-50' : 'text-muted'}`}>
Showing <span>{startingAppCount()}</span> to <span>{endingAppCount()}</span> of <span>{count}</span>
</p>