From 4d2bd5ce1e34360c16296d870a85d68ec4c9a9d8 Mon Sep 17 00:00:00 2001 From: Mark D'Avella Date: Wed, 29 May 2024 16:32:56 -0400 Subject: [PATCH] Fix channel creation --- .../ChannelPropertiesEditor.tsx | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/web/src/components/channel_config/ChannelPropertiesEditor.tsx b/web/src/components/channel_config/ChannelPropertiesEditor.tsx index 1585882b..e3d6abeb 100644 --- a/web/src/components/channel_config/ChannelPropertiesEditor.tsx +++ b/web/src/components/channel_config/ChannelPropertiesEditor.tsx @@ -7,6 +7,7 @@ import { Controller, useFormContext } from 'react-hook-form'; import useStore from '../../store/index.ts'; import TunarrLogo from '../TunarrLogo.tsx'; import { ImageUploadInput } from '../settings/ImageUploadInput.tsx'; +import { NumericFormControllerText } from '../util/TypedController.tsx'; import ChannelEditActions from './ChannelEditActions.tsx'; const DefaultIconPath = ''; @@ -56,20 +57,20 @@ export default function ChannelPropertiesEditor({ isNew }: Props) { {channel && ( <> - ( - - )} + TextFieldProps={{ + fullWidth: true, + label: 'Channel Number', + type: 'number', + margin: 'normal', + helperText: ({ formState: { errors } }) => + errors.number ? 'Channel number is required' : null, + }} /> +