From 0db5189e6f69c249321fdaba7d945efa0a6279c9 Mon Sep 17 00:00:00 2001 From: Ludwig Richter Date: Wed, 10 Mar 2021 15:58:46 +0100 Subject: [PATCH] feat(widget): Initialize placeholder widget --- src/widgets/index.ts | 2 ++ src/widgets/placeholder-widget/index.ts | 7 +++++++ src/widgets/placeholder-widget/widget.tsx | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 src/widgets/placeholder-widget/index.ts create mode 100644 src/widgets/placeholder-widget/widget.tsx diff --git a/src/widgets/index.ts b/src/widgets/index.ts index 15127b9..0ad9ec8 100644 --- a/src/widgets/index.ts +++ b/src/widgets/index.ts @@ -14,10 +14,12 @@ import { widget as graphWidget } from './graph-widget'; import { widget as waveformWidget } from './waveform-widget'; import { widget as spectrogramWidget } from './spectrogram-widget'; import { widget as gpsDetails } from './gps-details'; +import { widget as placeholderWidget } from './placeholder-widget'; // IMPORT_INSERT_MARK export const projectWidgets: Widget[] = [ // ARRAY_FIRST_ELEMENT_INSERT_MARK + placeholderWidget, gpsDetails, spectrogramWidget, mapWidget, diff --git a/src/widgets/placeholder-widget/index.ts b/src/widgets/placeholder-widget/index.ts new file mode 100644 index 0000000..7e5b9d7 --- /dev/null +++ b/src/widgets/placeholder-widget/index.ts @@ -0,0 +1,7 @@ +import { Widget } from '@wuespace/telestion-client-types'; +import { Widget as WidgetRenderer } from './widget'; + +export const widget: Widget = { + name: 'placeholderWidget', + Widget: WidgetRenderer +}; diff --git a/src/widgets/placeholder-widget/widget.tsx b/src/widgets/placeholder-widget/widget.tsx new file mode 100644 index 0000000..68e18e7 --- /dev/null +++ b/src/widgets/placeholder-widget/widget.tsx @@ -0,0 +1,5 @@ +import { Heading } from '@adobe/react-spectrum'; + +export function Widget() { + return placeholderWidget widget; +}