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, + }} /> +