Skip to content

Commit 773a99f

Browse files
committed
Removing some radix references
1 parent 5954503 commit 773a99f

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

frontend/src/components/misc/user-preferences.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const UserPreferencesDialog: FC<{ isOpen: boolean; onClose: () => void }>
5656

5757
return (
5858
<Dialog onOpenChange={(open) => !open && onClose()} open={isOpen}>
59-
<DialogContent className="min-h-[50vh]" size="xl" >
59+
<DialogContent className="min-h-[50vh]" size="xl">
6060
<DialogHeader>
6161
<DialogTitle>User Preferences</DialogTitle>
6262
</DialogHeader>

frontend/src/components/redpanda-ui/lib/use-controllable-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function useUncontrolledState<T>({
9090
onChangeRef.current = onChange;
9191
}, [onChange]);
9292

93-
// biome-ignore lint/correctness/useExhaustiveDependencies: because radix did it
93+
// biome-ignore lint/correctness/useExhaustiveDependencies: onChangeRef is a stable ref, intentionally omitted to avoid re-firing on every onChange identity change
9494
React.useEffect(() => {
9595
if (prevValueRef.current !== value) {
9696
onChangeRef.current?.(value);

frontend/vitest.setup.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ Object.defineProperty(HTMLCanvasElement.prototype, 'getContext', {
3535
}),
3636
});
3737

38-
// Mock ResizeObserver - not available in jsdom but required by RadixUI components
39-
// (Switch, Tabs, etc.) that use @radix-ui/react-use-size internally
40-
// Mock the ResizeObserver
38+
// Mock ResizeObserver - not available in jsdom but used by registry components
39+
// (Tabs, Tags, etc.) and other size-aware UI code.
4140
const ResizeObserverMock = vi.fn(() => ({
4241
observe: vi.fn(),
4342
unobserve: vi.fn(),

0 commit comments

Comments
 (0)