fix: remove example pipe (#18224)
parent
cfdfec04cd
commit
70073ff793
|
|
@ -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++,
|
||||
}),
|
||||
})
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue