Skip to content

Commit

Permalink
Refactor: Removed unused code in Edit.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp committed Aug 31, 2023
1 parent de0a961 commit 9f883eb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/block-editor-utils/src/components/Edit.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
import * as React from 'react';
import { useBlockProps } from '@wordpress/block-editor';
import { addFilter } from '@wordpress/hooks';
import { EditFnContext } from '../registerFaustBlock.js';
import Preview from './Preview.js';
import EditFormFields from './EditFormFields.js';
import getControlFields from '../helpers/getControlFields.js';
import { Control } from '../types/index.js';

type ControlMap = { [key: string]: Control };
addFilter(
'faustBlockEditorUtils.controls',
'faust-block-editor-utils',
(controls: ControlMap) => {
// eslint-disable-next-line no-param-reassign
controls.color = () => <div>Another Color</div>;
return controls;
},
);

export default function Edit<T extends Record<string, any>>(
ctx: EditFnContext<T>,
Expand Down

0 comments on commit 9f883eb

Please sign in to comment.