refactor: convert forwardRef components to function components for consistency

This commit is contained in:
Dries Augustyns
2026-05-04 21:08:14 +02:00
parent ed9027b4ef
commit 361ec0b1eb
35 changed files with 869 additions and 889 deletions
+1 -3
View File
@@ -9,7 +9,6 @@ interface ApiKeyDisplayProps {
description?: string;
isSecret?: boolean;
onRegenerate?: () => Promise<void>;
showRegenerate?: boolean;
}
export function ApiKeyDisplay({
@@ -18,7 +17,6 @@ export function ApiKeyDisplay({
description,
isSecret = false,
onRegenerate,
showRegenerate = false,
}: ApiKeyDisplayProps) {
const [showKey, setShowKey] = useState(!isSecret);
const [copied, setCopied] = useState(false);
@@ -101,7 +99,7 @@ export function ApiKeyDisplay({
)}
</AnimatePresence>
</Button>
{showRegenerate && onRegenerate && (
{onRegenerate && (
<Button
type="button"
variant="outline"