mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-10 00:20:06 +08:00
fix disablePagination logic
This commit is contained in:
@@ -80,7 +80,7 @@ export const DataTable = <T,>({
|
||||
};
|
||||
return (
|
||||
<>
|
||||
{disablePagination && (
|
||||
{!disablePagination && (
|
||||
<Flex mb="2">
|
||||
<Button onClick={onPreviousClick} disabled={disablePrevious}>
|
||||
Previous
|
||||
|
||||
@@ -60,5 +60,5 @@ export const LeaderboardTable = ({ timeFrame, limit }: { timeFrame: LeaderboardT
|
||||
return <span>Unable to load leaderboard</span>;
|
||||
}
|
||||
|
||||
return <DataTable data={reply.leaderboard} columns={columns} caption={lastUpdated}></DataTable>;
|
||||
return <DataTable data={reply.leaderboard} columns={columns} caption={lastUpdated} disablePagination></DataTable>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user