Skip to content

Commit db32fd1

Browse files
enhance: merge fixes
1 parent 020b405 commit db32fd1

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

crowdsec-docs/docusaurus.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ const NAVBAR_ITEMS: NavbarItem[] = [
104104
label: "Guides",
105105
},
106106
{
107-
to: `https://academy.crowdsec.net/courses?${
108-
process.env.NODE_ENV === "production" ? "utm_source=docs&utm_medium=menu&utm_campaign=top-menu&utm_id=academydocs" : ""
109-
}`,
107+
to: ACADEMY_URL,
110108
label: "Academy",
111109
},
112110
],

crowdsec-docs/src/components/remediation-support-badge.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@ const RemediationSupportBadge = ({ title, description, support }: { title: strin
1414
//ugly, for test
1515
const colorClass = support === "Unsupported" ? "bg-red-400" : "bg-green-400";
1616
return (
17-
<Tooltip>
18-
<TooltipTrigger asChild>
19-
<div className="border rounded-full flex text-black">
20-
<span className="bg-slate-400 px-2 rounded-l-lg">{title}</span>
21-
<span className={clsx("rounded-r-lg px-2", colorClass)}>{support}</span>
22-
</div>
23-
</TooltipTrigger>
24-
<TooltipContent>
25-
<p>{description}</p>
26-
<ToolTipArrow className="dark:fill-white" />
27-
</TooltipContent>
28-
</Tooltip>
17+
<TooltipProvider>
18+
<Tooltip>
19+
<TooltipTrigger asChild>
20+
<div className="border rounded-full flex text-black">
21+
<span className="bg-slate-400 px-2 rounded-l-lg">{title}</span>
22+
<span className={clsx("rounded-r-lg px-2", colorClass)}>{support}</span>
23+
</div>
24+
</TooltipTrigger>
25+
<TooltipContent>
26+
<p>{description}</p>
27+
<ToolTipArrow className="dark:fill-white" />
28+
</TooltipContent>
29+
</Tooltip>
30+
</TooltipProvider>
2931
);
3032
};
3133

0 commit comments

Comments
 (0)