From 9903f0b75d1ea46e47916fecd185f3e18fce6fa4 Mon Sep 17 00:00:00 2001 From: Five Boroughs <40718516+FiveBoroughs@users.noreply.github.com> Date: Fri, 22 May 2026 17:55:54 +0200 Subject: [PATCH] refactor(frontend): extract useEpgPreview to its own hook file --- .../__tests__/ProgramPreview.test.jsx | 1 - frontend/src/components/forms/Channel.jsx | 73 +------------------ .../__tests__/ChannelEpgPreview.test.jsx | 2 +- frontend/src/hooks/useEpgPreview.jsx | 72 ++++++++++++++++++ 4 files changed, 74 insertions(+), 74 deletions(-) create mode 100644 frontend/src/hooks/useEpgPreview.jsx diff --git a/frontend/src/components/__tests__/ProgramPreview.test.jsx b/frontend/src/components/__tests__/ProgramPreview.test.jsx index 5b0d44e4..46b744cb 100644 --- a/frontend/src/components/__tests__/ProgramPreview.test.jsx +++ b/frontend/src/components/__tests__/ProgramPreview.test.jsx @@ -4,7 +4,6 @@ import ProgramPreview from '../ProgramPreview'; // Mock Mantine components as lightweight stubs vi.mock('@mantine/core', () => { - const React = require('react'); return { ActionIcon: ({ children, onClick, ...props }) => (