diff --git a/src/renderer/components/filters/ReasonFilter.tsx b/src/renderer/components/filters/ReasonFilter.tsx index a9a5f2292..2fa42298a 100644 --- a/src/renderer/components/filters/ReasonFilter.tsx +++ b/src/renderer/components/filters/ReasonFilter.tsx @@ -1,4 +1,4 @@ -import type { FC } from 'react'; +import { type FC, useId } from 'react'; import { NoteIcon } from '@primer/octicons-react'; import { Text } from '@primer/react'; @@ -7,12 +7,14 @@ import { reasonFilter } from '../../utils/notifications/filters'; import { FilterSection } from './FilterSection'; export const ReasonFilter: FC = () => { + const id = useId(); + return ( Filter notifications by reason.} /> diff --git a/src/renderer/components/filters/StateFilter.tsx b/src/renderer/components/filters/StateFilter.tsx index 54869ef37..8b297e054 100644 --- a/src/renderer/components/filters/StateFilter.tsx +++ b/src/renderer/components/filters/StateFilter.tsx @@ -1,4 +1,4 @@ -import type { FC } from 'react'; +import { type FC, useId } from 'react'; import { IssueOpenedIcon } from '@primer/octicons-react'; import { Text } from '@primer/react'; @@ -7,12 +7,14 @@ import { stateFilter } from '../../utils/notifications/filters'; import { FilterSection } from './FilterSection'; export const StateFilter: FC = () => { + const id = useId(); + return ( Filter notifications by state.} /> diff --git a/src/renderer/components/filters/SubjectTypeFilter.tsx b/src/renderer/components/filters/SubjectTypeFilter.tsx index e2e04b774..229c62ed9 100644 --- a/src/renderer/components/filters/SubjectTypeFilter.tsx +++ b/src/renderer/components/filters/SubjectTypeFilter.tsx @@ -1,4 +1,4 @@ -import type { FC } from 'react'; +import { type FC, useId } from 'react'; import { BellIcon } from '@primer/octicons-react'; import { Text } from '@primer/react'; @@ -7,12 +7,14 @@ import { subjectTypeFilter } from '../../utils/notifications/filters'; import { FilterSection } from './FilterSection'; export const SubjectTypeFilter: FC = () => { + const id = useId(); + return ( Filter notifications by type.} /> diff --git a/src/renderer/components/filters/UserTypeFilter.tsx b/src/renderer/components/filters/UserTypeFilter.tsx index 5030ca55f..5bcaa52c3 100644 --- a/src/renderer/components/filters/UserTypeFilter.tsx +++ b/src/renderer/components/filters/UserTypeFilter.tsx @@ -1,4 +1,4 @@ -import type { FC } from 'react'; +import { type FC, useId } from 'react'; import { DependabotIcon, @@ -13,12 +13,14 @@ import { userTypeFilter } from '../../utils/notifications/filters'; import { FilterSection } from './FilterSection'; export const UserTypeFilter: FC = () => { + const id = useId(); + return (