This commit is contained in:
Aman 2025-03-05 23:14:57 +05:30 committed by GitHub
commit 41d4317a26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -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">

View file

@ -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">