From 1dc54f403ebd5e93507b99a5f4fde58c4211f11e Mon Sep 17 00:00:00 2001 From: Alex Boatwright Date: Fri, 12 Jun 2020 15:06:19 -0700 Subject: [PATCH] feat: button order (#18492) Co-authored-by: drdelambre --- ui/src/notebooks/components/AddButtons.tsx | 50 +++++++++++++-------- ui/src/notebooks/index.ts | 2 + ui/src/notebooks/pipes/Query/index.ts | 1 + ui/src/notebooks/pipes/Spotify/editor.tsx | 29 ++++++++++++ ui/src/notebooks/pipes/Spotify/embedded.tsx | 29 ++++++++++++ ui/src/notebooks/pipes/Spotify/index.ts | 15 +++++++ ui/src/notebooks/pipes/Spotify/style.scss | 10 +++++ ui/src/notebooks/pipes/Spotify/view.tsx | 38 ++++++++++++++++ 8 files changed, 155 insertions(+), 19 deletions(-) create mode 100644 ui/src/notebooks/pipes/Spotify/editor.tsx create mode 100644 ui/src/notebooks/pipes/Spotify/embedded.tsx create mode 100644 ui/src/notebooks/pipes/Spotify/index.ts create mode 100644 ui/src/notebooks/pipes/Spotify/style.scss create mode 100644 ui/src/notebooks/pipes/Spotify/view.tsx diff --git a/ui/src/notebooks/components/AddButtons.tsx b/ui/src/notebooks/components/AddButtons.tsx index 56705913ad..b462a7877a 100644 --- a/ui/src/notebooks/components/AddButtons.tsx +++ b/ui/src/notebooks/components/AddButtons.tsx @@ -11,25 +11,37 @@ import {PIPE_DEFINITIONS} from 'src/notebooks' const AddButtons: FC = () => { const {addPipe} = useContext(NotebookContext) - const pipes = Object.entries(PIPE_DEFINITIONS).map(([type, def]) => { - return ( -