Skip to content

Commit

Permalink
fix: Change notice tooltips easier to close (#18489)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Nov 8, 2023
1 parent 49d8fdf commit 0b0a29a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IconCheck } from '@posthog/icons'
import { LemonButton, LemonDivider, Tooltip, TooltipProps } from '@posthog/lemon-ui'
import { useValues } from 'kea'
import { IconClose } from 'lib/lemon-ui/icons'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import posthog from 'posthog-js'
import React, { Fragment, useState } from 'react'
Expand Down Expand Up @@ -65,7 +65,7 @@ export function SidebarChangeNoticeContent({
onAcknowledged: () => void
}): JSX.Element | null {
return (
<div className="flex items-center gap-1">
<div className="flex items-center gap-1" onClick={onAcknowledged}>
<div className="flex-1">
{notices.map((notice, i) => (
<Fragment key={i}>
Expand All @@ -75,7 +75,7 @@ export function SidebarChangeNoticeContent({
))}
</div>

<LemonButton size="small" onClick={onAcknowledged} icon={<IconCheck />} />
<LemonButton size="small" onClick={onAcknowledged} icon={<IconClose />} />
</div>
)
}
Expand Down

0 comments on commit 0b0a29a

Please sign in to comment.