mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
lint
This commit is contained in:
@@ -7,7 +7,6 @@ import useHttpSettings, { usePostHttpSubscriptions } from '../../../common/hooks
|
||||
import { useEmitLog } from '../../../common/stores/logger';
|
||||
import ModalLoader from '../modal-loader/ModalLoader';
|
||||
import OntimeModalFooter from '../OntimeModalFooter';
|
||||
// import { Switch } from '@chakra-ui/react';
|
||||
import SubscriptionRow from './SubscriptionRow';
|
||||
|
||||
import styles from '../Modal.module.scss';
|
||||
@@ -92,7 +91,7 @@ export default function HttpIntegration() {
|
||||
return <ModalLoader />;
|
||||
}
|
||||
const placeholder = 'http://x.x.x.x:xxxx/api/path';
|
||||
//TODO: add golobal off
|
||||
//TODO: add golobal off
|
||||
return (
|
||||
<form onSubmit={handleSubmit(onSubmit)} className={styles.sectionContainer} id='http-subscriptions'>
|
||||
{/* <div className={styles.splitSection}>
|
||||
|
||||
@@ -91,7 +91,7 @@ export default function OscIntegration() {
|
||||
if (isFetching) {
|
||||
return <ModalLoader />;
|
||||
}
|
||||
const placeholder = 'OSC message'
|
||||
const placeholder = 'OSC message';
|
||||
return (
|
||||
<form onSubmit={handleSubmit(onSubmit)} className={styles.sectionContainer} id='osc-subscriptions'>
|
||||
<SubscriptionRow
|
||||
|
||||
@@ -17,11 +17,11 @@ interface SubscriptionRowProps {
|
||||
setShowSection: (cycle: TimerLifeCycle) => void;
|
||||
register: UseFormRegister<Subscription>;
|
||||
control: Control<Subscription>;
|
||||
placeholder: string
|
||||
placeholder: string;
|
||||
}
|
||||
|
||||
export default function SubscriptionRow(props: SubscriptionRowProps) {
|
||||
const { cycle, title, subtitle, visible, setShowSection, register, control , placeholder} = props;
|
||||
const { cycle, title, subtitle, visible, setShowSection, register, control, placeholder } = props;
|
||||
const { emitError } = useEmitLog();
|
||||
const { fields, append, remove } = useFieldArray({
|
||||
name: cycle,
|
||||
|
||||
Reference in New Issue
Block a user