1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 21:49:20 +01:00

Remove unused imports from all examples

This commit is contained in:
Sunny Hirai 2021-03-29 09:37:24 -07:00
parent 0e22da7a59
commit b88149c2f9
14 changed files with 4 additions and 21 deletions

View File

@ -8,7 +8,6 @@ import {
ReactEditor,
} from 'slate-react'
import {
Node,
Editor,
Transforms,
Range,

View File

@ -5,14 +5,7 @@ import 'prismjs/components/prism-sql'
import 'prismjs/components/prism-java'
import React, { useState, useCallback, useMemo } from 'react'
import { Slate, Editable, withReact } from 'slate-react'
import {
Text,
createEditor,
Node,
Element as SlateElement,
BaseEditor,
Descendant,
} from 'slate'
import { Text, createEditor, Element as SlateElement, Descendant } from 'slate'
import { withHistory } from 'slate-history'
import { css } from 'emotion'

View File

@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
import {
Transforms,
createEditor,
Node,
Element as SlateElement,
Descendant,
} from 'slate'

View File

@ -5,7 +5,6 @@ import {
Transforms,
Text,
createEditor,
Node,
Element,
Descendant,
} from 'slate'

View File

@ -6,7 +6,6 @@ import {
Editor,
Element as SlateElement,
createEditor,
Node,
Descendant,
} from 'slate'
import { withHistory } from 'slate-history'

View File

@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
import imageExtensions from 'image-extensions'
import isUrl from 'is-url'
import {
Node,
Transforms,
createEditor,
Element as SlateElement,

View File

@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
import isUrl from 'is-url'
import { Slate, Editable, withReact, useSlate } from 'slate-react'
import {
Node,
Transforms,
Editor,
Range,

View File

@ -1,7 +1,7 @@
import Prism from 'prismjs'
import React, { useState, useCallback, useMemo } from 'react'
import { Slate, Editable, withReact } from 'slate-react'
import { Node, Text, createEditor, Element, Descendant } from 'slate'
import { Text, createEditor, Element, Descendant } from 'slate'
import { withHistory } from 'slate-history'
import { css } from 'emotion'

View File

@ -1,7 +1,6 @@
import React, { useState, useCallback, useMemo } from 'react'
import { Slate, Editable, withReact } from 'slate-react'
import {
Node,
Editor,
Transforms,
Range,

View File

@ -1,6 +1,5 @@
import React, { useMemo, useCallback, useRef, useEffect, useState } from 'react'
import {
Node,
Editor,
Transforms,
Range,

View File

@ -1,7 +1,6 @@
import React, { useState, useCallback, useMemo } from 'react'
import { jsx } from 'slate-hyperscript'
import {
Node,
Transforms,
createEditor,
Element as SlateElement,

View File

@ -1,5 +1,5 @@
import React, { useState, useMemo } from 'react'
import { createEditor, Descendant, Element, Node } from 'slate'
import { createEditor, Descendant, Element } from 'slate'
import { Slate, Editable, withReact } from 'slate-react'
const ReadOnlyExample = () => {

View File

@ -6,7 +6,6 @@ import {
Transforms,
createEditor,
Descendant,
Node,
Element as SlateElement,
} from 'slate'
import { withHistory } from 'slate-history'

View File

@ -1,6 +1,6 @@
import React, { useState, useCallback, useMemo } from 'react'
import { Slate, Editable, withReact } from 'slate-react'
import { Text, Node, Descendant, createEditor } from 'slate'
import { Text, Descendant, createEditor } from 'slate'
import { css } from 'emotion'
import { withHistory } from 'slate-history'