Skip to content

Commit

Permalink
Fix suspended alerts displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Sep 17, 2024
1 parent 10e9553 commit 4fae5df
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions frontend/src/features/SideWindow/Alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ export function Alert({ baseRef }: AlertProps) {
options={ALERT_SUB_MENU_OPTIONS}
value={subMenu}
/>
<AlertListAndReportingList
baseRef={baseRef as MutableRefObject<HTMLDivElement>}
selectedSeafrontGroup={isSeafrontGroupMenu ? (subMenu as SeafrontGroup) : SeafrontGroup.MEMN}
selectedTab={selectedTab}
setSelectedTab={setSelectedTab}
/>
{subMenu !== AdditionalSubMenu.SUSPENDED_ALERTS && (
<AlertListAndReportingList
baseRef={baseRef as MutableRefObject<HTMLDivElement>}
selectedSeafrontGroup={isSeafrontGroupMenu ? (subMenu as SeafrontGroup) : SeafrontGroup.MEMN}
selectedTab={selectedTab}
setSelectedTab={setSelectedTab}
/>
)}
{subMenu === AdditionalSubMenu.SUSPENDED_ALERTS && <SilencedAlerts />}
</>
)
Expand Down

0 comments on commit 4fae5df

Please sign in to comment.