From 70073ff793dd7f11f3992edb094a095f4640e576 Mon Sep 17 00:00:00 2001 From: Alex Boatwright Date: Tue, 26 May 2020 13:09:32 -0700 Subject: [PATCH] fix: remove example pipe (#18224) --- ui/src/notebooks/pipes/Example/index.ts | 14 -------------- ui/src/notebooks/pipes/Example/style.scss | 18 ------------------ ui/src/notebooks/pipes/Example/view.tsx | 12 ------------ 3 files changed, 44 deletions(-) delete mode 100644 ui/src/notebooks/pipes/Example/index.ts delete mode 100644 ui/src/notebooks/pipes/Example/style.scss delete mode 100644 ui/src/notebooks/pipes/Example/view.tsx diff --git a/ui/src/notebooks/pipes/Example/index.ts b/ui/src/notebooks/pipes/Example/index.ts deleted file mode 100644 index f50636597a..0000000000 --- a/ui/src/notebooks/pipes/Example/index.ts +++ /dev/null @@ -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++, - }), -}) diff --git a/ui/src/notebooks/pipes/Example/style.scss b/ui/src/notebooks/pipes/Example/style.scss deleted file mode 100644 index 26d0ab8865..0000000000 --- a/ui/src/notebooks/pipes/Example/style.scss +++ /dev/null @@ -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; - } -} diff --git a/ui/src/notebooks/pipes/Example/view.tsx b/ui/src/notebooks/pipes/Example/view.tsx deleted file mode 100644 index f58e612b76..0000000000 --- a/ui/src/notebooks/pipes/Example/view.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import React, {FC} from 'react' -import {PipeProp} from 'src/notebooks' - -const ExampleView: FC = ({data, Context}) => { - return ( - -

{data.text}

-
- ) -} - -export default ExampleView