Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: improve tailwind class

Marc Klingen6f8ac2b79653
diff --git a/src/components/star-toggle.tsx b/src/components/star-toggle.tsx
index dc4ab2da71..e95e80d488 100644
--- a/src/components/star-toggle.tsx
+++ b/src/components/star-toggle.tsx
@@ -4,6 +4,7 @@ import { Button } from "@/src/components/ui/button";
import { useEffect, useState } from "react";
import { api } from "@/src/utils/api";
import { useHasAccess } from "@/src/features/rbac/utils/checkAccess";
+import { cn } from "@/src/utils/tailwind";
export function StarToggle({
value,
@@ -41,9 +42,10 @@ export function StarToggle({
loading={loading}
>
<StarIcon
- className={`h-4 w-4 ${
- optimisticValue ? "fill-current text-yellow-500" : "text-gray-500"
- }`}
+ className={cn(
+ "h-4 w-4",
+ optimisticValue ? "fill-current text-yellow-500" : "text-gray-500",
+ )}
/>
</Button>
);