Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Chernakov <[email protected]>
Signed-off-by: Tal <[email protected]>
  • Loading branch information
talboren and Kiryous authored Oct 21, 2024
1 parent a0346db commit cfbfa5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keep-ui/app/incidents/[id]/incident-activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from "@/utils/hooks/useIncidents";
import { AuditEvent, useAlerts } from "@/utils/hooks/useAlerts";
import Loading from "@/app/loading";
import { useCallback, useState } from "react";
import { useCallback, useState, useEffect } from "react";
import { getApiURL } from "@/utils/apiUrl";
import { useSession } from "next-auth/react";
import { KeyedMutator } from "swr";
Expand Down Expand Up @@ -59,7 +59,6 @@ export function IncidentActivityChronoItem({ activity }: { activity: any }) {
);
}

import { useEffect } from "react";

export function IncidentActivityChronoItemComment({
incident,
Expand Down Expand Up @@ -244,6 +243,7 @@ export default function IncidentActivity({
return (
<Chrono
items={activities?.map((activity) => ({
id: activity.id,
title: activity.timestamp,
}))}
hideControls
Expand All @@ -254,6 +254,7 @@ export default function IncidentActivity({
cardWidth={600}
cardHeight={100}
allowDynamicUpdate={true}
disableAutoScrollOnClick={true}
>
{chronoContent}
<div className="chrono-icons">{chronoIcons}</div>
Expand Down

0 comments on commit cfbfa5c

Please sign in to comment.