mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-24 16:54:23 +01:00
chore: remove unused imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useHelpers, useEvent, useRemirrorContext } from '@remirror/react';
|
||||
import { useHelpers, useRemirrorContext } from '@remirror/react';
|
||||
import { Control, useController } from 'react-hook-form';
|
||||
import { useDebouncedCallback } from '@react-hookz/web';
|
||||
|
||||
@@ -9,12 +9,12 @@ interface Props {
|
||||
|
||||
export default function SaveModule(props: Props) {
|
||||
|
||||
const { field: { onChange, onBlur } } = useController({
|
||||
const { field: { onChange } } = useController({
|
||||
control: props.control,
|
||||
name: props.name ?? 'content'
|
||||
})
|
||||
|
||||
const { getMarkdown, getHTML } = useHelpers();
|
||||
const { getMarkdown } = useHelpers();
|
||||
|
||||
const changeCallback = useDebouncedCallback(ctx => {
|
||||
const { state } = ctx;
|
||||
|
||||
Reference in New Issue
Block a user