mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Fixes pagination subtext color in dark mode (#1980)
This commit is contained in:
parent
2b81ca56a7
commit
01efd39d88
2 changed files with 3 additions and 2 deletions
|
|
@ -590,6 +590,7 @@ class HomePage extends React.Component {
|
|||
currentPage={meta.current_page}
|
||||
count={this.pageCount()}
|
||||
pageChanged={this.pageChanged}
|
||||
darkMode={this.props.darkMode}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useMemo } from 'react';
|
||||
|
||||
export const Pagination = function Pagination({ currentPage, count, pageChanged, itemsPerPage = 10 }) {
|
||||
export const Pagination = function Pagination({ currentPage, count, pageChanged, itemsPerPage = 10, darkMode }) {
|
||||
const totalPages = useMemo(() => {
|
||||
return Math.floor((count - 1) / itemsPerPage) + 1;
|
||||
}, [count, itemsPerPage]);
|
||||
|
|
@ -53,7 +53,7 @@ export const Pagination = function Pagination({ currentPage, count, pageChanged,
|
|||
|
||||
return (
|
||||
<div className="card-footer d-flex align-items-center px-1">
|
||||
<p className="m-0 text-muted">
|
||||
<p className={`m-0 ${darkMode ? 'text-white-50' : 'text-muted'}`}>
|
||||
Showing <span>{startingAppCount()}</span> to <span>{endingAppCount()}</span> of <span>{count}</span>
|
||||
</p>
|
||||
<ul className="pagination m-0 ms-auto">
|
||||
|
|
|
|||
Loading…
Reference in a new issue