mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
style: no-unused-vars (#3269)
This commit is contained in:
committed by
Ian Storm Taylor
parent
0856dd7115
commit
7ac85e6a93
@@ -118,24 +118,6 @@ const Leaf = ({ attributes, children, leaf }) => {
|
||||
)
|
||||
}
|
||||
|
||||
const Decoration = props => {
|
||||
const { children, attributes, leaf } = props
|
||||
|
||||
switch (decoration.type) {
|
||||
case 'blockquote': {
|
||||
return (
|
||||
<span {...attributes} style={{}}>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
default: {
|
||||
throw new Error(`Unknown markdown decoration type: "${decoration.type}"`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const initialValue = [
|
||||
{
|
||||
children: [
|
||||
|
Reference in New Issue
Block a user