mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Merge 11baddb19b
into 7cbf749096
This commit is contained in:
commit
41d4317a26
|
@ -215,12 +215,12 @@ export default function AlertsPage() {
|
||||||
// convenient to have in the same file IMO).
|
// convenient to have in the same file IMO).
|
||||||
const renderedPageItems = useMemo(
|
const renderedPageItems = useMemo(
|
||||||
() =>
|
() =>
|
||||||
currentPageGroups.map((g, i) => (
|
currentPageGroups.map((g) => (
|
||||||
<Card
|
<Card
|
||||||
shadow="xs"
|
shadow="xs"
|
||||||
withBorder
|
withBorder
|
||||||
p="md"
|
p="md"
|
||||||
key={i} // TODO: Find a stable and definitely unique key.
|
key={`${g.file}-${g.name}`}
|
||||||
>
|
>
|
||||||
<Group mb="md" mt="xs" ml="xs" justify="space-between">
|
<Group mb="md" mt="xs" ml="xs" justify="space-between">
|
||||||
<Group align="baseline">
|
<Group align="baseline">
|
||||||
|
|
|
@ -86,13 +86,13 @@ export default function RulesPage() {
|
||||||
(effectiveActivePage - 1) * ruleGroupsPerPage,
|
(effectiveActivePage - 1) * ruleGroupsPerPage,
|
||||||
effectiveActivePage * ruleGroupsPerPage
|
effectiveActivePage * ruleGroupsPerPage
|
||||||
)
|
)
|
||||||
.map((g, i) => (
|
.map((g) => (
|
||||||
<Card
|
<Card
|
||||||
shadow="xs"
|
shadow="xs"
|
||||||
withBorder
|
withBorder
|
||||||
p="md"
|
p="md"
|
||||||
mb="md"
|
mb="md"
|
||||||
key={i} // TODO: Find a stable and definitely unique key.
|
key={`${g.file}-${g.name}`}
|
||||||
>
|
>
|
||||||
<Group mb="md" mt="xs" ml="xs" justify="space-between">
|
<Group mb="md" mt="xs" ml="xs" justify="space-between">
|
||||||
<Group align="baseline">
|
<Group align="baseline">
|
||||||
|
|
Loading…
Reference in a new issue