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:
parent
0e22da7a59
commit
b88149c2f9
@ -8,7 +8,6 @@ import {
|
||||
ReactEditor,
|
||||
} from 'slate-react'
|
||||
import {
|
||||
Node,
|
||||
Editor,
|
||||
Transforms,
|
||||
Range,
|
||||
|
@ -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'
|
||||
|
||||
|
@ -2,7 +2,6 @@ import React, { useState, useMemo } from 'react'
|
||||
import {
|
||||
Transforms,
|
||||
createEditor,
|
||||
Node,
|
||||
Element as SlateElement,
|
||||
Descendant,
|
||||
} from 'slate'
|
||||
|
@ -5,7 +5,6 @@ import {
|
||||
Transforms,
|
||||
Text,
|
||||
createEditor,
|
||||
Node,
|
||||
Element,
|
||||
Descendant,
|
||||
} from 'slate'
|
||||
|
@ -6,7 +6,6 @@ import {
|
||||
Editor,
|
||||
Element as SlateElement,
|
||||
createEditor,
|
||||
Node,
|
||||
Descendant,
|
||||
} from 'slate'
|
||||
import { withHistory } from 'slate-history'
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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'
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React, { useState, useCallback, useMemo } from 'react'
|
||||
import { Slate, Editable, withReact } from 'slate-react'
|
||||
import {
|
||||
Node,
|
||||
Editor,
|
||||
Transforms,
|
||||
Range,
|
||||
|
@ -1,6 +1,5 @@
|
||||
import React, { useMemo, useCallback, useRef, useEffect, useState } from 'react'
|
||||
import {
|
||||
Node,
|
||||
Editor,
|
||||
Transforms,
|
||||
Range,
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React, { useState, useCallback, useMemo } from 'react'
|
||||
import { jsx } from 'slate-hyperscript'
|
||||
import {
|
||||
Node,
|
||||
Transforms,
|
||||
createEditor,
|
||||
Element as SlateElement,
|
||||
|
@ -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 = () => {
|
||||
|
@ -6,7 +6,6 @@ import {
|
||||
Transforms,
|
||||
createEditor,
|
||||
Descendant,
|
||||
Node,
|
||||
Element as SlateElement,
|
||||
} from 'slate'
|
||||
import { withHistory } from 'slate-history'
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user