Skip to content

Commit 589a27a

Browse files
committed
chore: PR review updates
1 parent 1c700a6 commit 589a27a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/src/components/CopyableValue/CopyableValue.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export const CopyableValue: FC<CopyableValueProps> = ({
4040
<TooltipProvider delayDuration={100}>
4141
<Tooltip
4242
open={tooltipOpen}
43-
onOpenChange={(next) => {
43+
onOpenChange={(shouldBeOpen) => {
4444
// Always keep the tooltip open when in focus to handle issues when onOpenChange is unexpectedly false
45-
if (!next && isFocused) return;
46-
setTooltipOpen(next);
45+
if (!shouldBeOpen && isFocused) return;
46+
setTooltipOpen(shouldBeOpen);
4747
}}
4848
>
4949
<TooltipTrigger asChild>

site/src/pages/IconsPage/IconsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const IconsPage: FC = () => {
141141
)}
142142
{searchedIcons.map((icon) => (
143143
<CopyableValue key={icon.url} value={icon.url}>
144-
<div className="flex flex-col gap-4 items-center max-w-full m-3">
144+
<div className="flex flex-col gap-4 items-center max-w-full p-3">
145145
<img
146146
alt={icon.url}
147147
src={icon.url}

0 commit comments

Comments
 (0)