♻️ (editor) Improve webhook creation
Remove terrible useEffects
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
||||
Block,
|
||||
BlockOptions,
|
||||
BlockWithOptions,
|
||||
Webhook,
|
||||
} from 'models'
|
||||
import { useRef } from 'react'
|
||||
import { DateInputSettingsBody } from '@/features/blocks/inputs/date'
|
||||
@@ -45,7 +44,6 @@ import { ScriptSettings } from '@/features/blocks/logic/script/components/Script
|
||||
|
||||
type Props = {
|
||||
block: BlockWithOptions
|
||||
webhook?: Webhook
|
||||
onExpandClick: () => void
|
||||
onBlockChange: (updates: Partial<Block>) => void
|
||||
}
|
||||
@@ -93,7 +91,6 @@ export const BlockSettings = ({
|
||||
onBlockChange,
|
||||
}: {
|
||||
block: BlockWithOptions
|
||||
webhook?: Webhook
|
||||
onBlockChange: (block: Partial<Block>) => void
|
||||
}): JSX.Element => {
|
||||
const handleOptionsChange = (options: BlockOptions) => {
|
||||
|
||||
Reference in New Issue
Block a user