Skip to content
Snippets Groups Projects
Commit c73538b9 authored by chris's avatar chris
Browse files

cleanup component

parent d4da35d9
No related branches found
No related tags found
1 merge request!289Pm node views portals
/* eslint-disable react-hooks/exhaustive-deps */ /* eslint-disable react-hooks/exhaustive-deps */
import React, { import React, { useState } from 'react';
useEffect,
useRef,
useMemo,
useLayoutEffect,
useState,
} from 'react';
import { EditorState } from 'prosemirror-state';
import { EditorView } from 'prosemirror-view';
import { StepMap } from 'prosemirror-transform';
import { baseKeymap } from 'prosemirror-commands';
import { keymap } from 'prosemirror-keymap';
import { undo, redo } from 'prosemirror-history';
import styled from 'styled-components'; import styled from 'styled-components';
const styles = {
border: '1px solid black',
};
const EditorWrapper = styled.div`
pointer-events: visible;
user-select: all;
`;
let questionView;
export default ({ node, view, getPos }) => { export default ({ node, view, getPos }) => {
const [showExplanation, setShowExplanation] = useState(false); const [showExplanation, setShowExplanation] = useState(false);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment