Skip to content

Commit

Permalink
chore(ui): incident timeline dots animation (#2405)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Nov 6, 2024
1 parent cae172d commit 56aa378
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keep-ui/app/incidents/[id]/timeline/incident-timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const EventDot: React.FC<EventDotProps> = ({
>
<div
className={`w-3 ${
isSelected ? "h-full border-2 border-white" : "h-3"
isSelected ? "h-full border-2 border-white" : "h-3 animate-pulse"
} ${dotColors[color as keyof typeof dotColors]} rounded-full`}
></div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion keep-ui/components/navbar/InitPostHog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ export const InitPostHog = () => {
const { data: session } = useSession();
const { data: configData } = useConfig();

if (typeof window !== "undefined" && configData && configData.POSTHOG_KEY && configData.POSTHOG_DISABLED !== "true") {
if (
typeof window !== "undefined" &&
configData &&
configData.POSTHOG_KEY &&
configData.POSTHOG_DISABLED !== "true"
) {
posthog.init(configData.POSTHOG_KEY!, {
api_host: configData.POSTHOG_HOST,
ui_host: configData.POSTHOG_HOST,
});
}

Expand Down

0 comments on commit 56aa378

Please sign in to comment.