mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-29 20:42:04 +08:00
chore: extract pagination config
This commit is contained in:
parent
580198ca7a
commit
46b4c8a004
@ -356,6 +356,10 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const paginationConfig = {
|
||||||
|
defaultCurrent: Number(paginationParam) || 1,
|
||||||
|
hideOnSinglePage: true,
|
||||||
|
};
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SearchContainer>
|
<SearchContainer>
|
||||||
@ -387,10 +391,7 @@ function ListAlert({ allAlertRules, refetch }: ListAlertProps): JSX.Element {
|
|||||||
dataSource={data}
|
dataSource={data}
|
||||||
dynamicColumns={dynamicColumns}
|
dynamicColumns={dynamicColumns}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
pagination={{
|
pagination={paginationConfig}
|
||||||
defaultCurrent: Number(paginationParam) || 1,
|
|
||||||
hideOnSinglePage: true,
|
|
||||||
}}
|
|
||||||
facingIssueBtn={{
|
facingIssueBtn={{
|
||||||
attributes: {
|
attributes: {
|
||||||
screen: 'Alert list page',
|
screen: 'Alert list page',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user