Skip to content
Snippets Groups Projects
Commit ce12ff62 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

_Panels: Added a placeholder panel

parent 45e0a0e7
No related branches found
No related tags found
No related merge requests found
......@@ -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>
)
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment