fix(next): add missing 'use client' to TestConnectionButton and KeyValueField

Both components use useState/useEffect/useCallback/useRef but were
missing the 'use client' directive. Without it Next.js App Router
renders them as server HTML — React never hydrates them and event
handlers are silently dropped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Canvas Agent 2026-04-16 09:10:22 +00:00
parent d6e9fbe984
commit eaa6975967
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
'use client';
import { useState, useCallback, useRef, useEffect, type ChangeEvent } from 'react';
import { RevealToggle } from './RevealToggle';

View File

@ -1,3 +1,5 @@
'use client';
import { useState, useCallback, useRef, useEffect } from 'react';
import type { TestConnectionState, SecretGroup } from '@/types/secrets';
import { validateSecret } from '@/lib/api/secrets';