From ce12ff623e35748b89b4907aac461562b5a1098f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Schr=C3=B6tler?= <niklas@allround.digital> Date: Mon, 27 Nov 2023 01:23:31 +0100 Subject: [PATCH] _Panels: Added a placeholder panel --- src/panels/_Panels.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/panels/_Panels.tsx b/src/panels/_Panels.tsx index d5db7ec..e030ce0 100644 --- a/src/panels/_Panels.tsx +++ b/src/panels/_Panels.tsx @@ -7,6 +7,7 @@ import React from "react"; import FahrplanPanel from "./Fahrplan/FahrplanPanel"; import {PanelDefinition} from "../types/LayoutConfig"; import BildPanel from "./Bild"; +import PanelWrapper from "../meta/PanelWrapper"; /* * First, please claim a unique id for your panel here. Convention is that it is all lowercase, in snake-case to be @@ -22,7 +23,12 @@ export type PanelTypes = "fahrplan" | "bild"; */ export const PanelRenderers: {[panelType: string]: React.FC<any & {definition: PanelDefinition<any>}>} = { "fahrplan": FahrplanPanel, - "bild": BildPanel + "bild": BildPanel, + "placeholder": () => ( + <PanelWrapper className={"flex flex-col items-center justify-center text-zinc-400"}> + Dieses Panel wird noch entwickelt + </PanelWrapper> + ) }; -- GitLab