fix: remove example pipe (#18224)

pull/18230/head
Alex Boatwright 2020-05-26 13:09:32 -07:00 committed by GitHub
parent cfdfec04cd
commit 70073ff793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 44 deletions

View File

@ -1,14 +0,0 @@
import {register} from 'src/notebooks'
import ExampleView from './view'
import './style.scss'
let counter = 0
register({
type: 'example',
component: ExampleView,
button: 'Example Adding',
initial: () => ({
text: 'Example Text ' + counter++,
}),
})

View File

@ -1,18 +0,0 @@
.pipe-example {
.notebook-panel--header {
transition: opacity 0.2s;
opacity: 0;
}
&:hover {
.notebook-panel--header {
opacity: 1;
}
}
h1 {
margin: 0;
padding: 1em 0;
}
}

View File

@ -1,12 +0,0 @@
import React, {FC} from 'react'
import {PipeProp} from 'src/notebooks'
const ExampleView: FC<PipeProp> = ({data, Context}) => {
return (
<Context>
<h1>{data.text}</h1>
</Context>
)
}
export default ExampleView