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

Restructured panels folder

parent 30a096de
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,8 @@ import ScreenWrapper from "./meta/ScreenWrapper"; ...@@ -4,8 +4,8 @@ import ScreenWrapper from "./meta/ScreenWrapper";
import useLayout from "./hooks/useLayout"; import useLayout from "./hooks/useLayout";
import {PanelRenderers} from "./panels/_Panels"; import {PanelRenderers} from "./panels/_Panels";
import LayoutElement from "./layout/LayoutElement"; import LayoutElement from "./layout/LayoutElement";
import ErrorPanel from "./panels/Error";
import {ErrorBoundary} from "react-error-boundary"; import {ErrorBoundary} from "react-error-boundary";
import ErrorPanel from "./panels/Error/ErrorPanel";
function App() { function App() {
const layout = useLayout(); const layout = useLayout();
......
import React from 'react'; import React from 'react';
import PanelWrapper from "../meta/PanelWrapper"; import PanelWrapper from "../../meta/PanelWrapper";
import classNames from "../util/classNames"; import classNames from "../../util/classNames";
import PanelContent from "../meta/PanelContent"; import PanelContent from "../../meta/PanelContent";
export type BildPanelDefinition = { export type BildPanelDefinition = {
url: string, url: string,
......
import React from 'react'; import React from 'react';
import PanelWrapper from "../meta/PanelWrapper"; import PanelWrapper from "../../meta/PanelWrapper";
const ErrorPanel = (props: {message?: string}) => { const ErrorPanel = (props: {message?: string}) => {
const message = props.message ?? "Failed to render Panel"; const message = props.message ?? "Failed to render Panel";
......
import React from 'react'; import React from 'react';
const Mensaplan = () => { const MensaplanPanel = () => {
return ( return (
<div> <div>
Mensaplan Mensaplan
...@@ -8,4 +8,4 @@ const Mensaplan = () => { ...@@ -8,4 +8,4 @@ const Mensaplan = () => {
); );
}; };
export default Mensaplan; export default MensaplanPanel;
import React from 'react'; import React from 'react';
const Uhr = () => { const UhrPanel = () => {
return ( return (
<div> <div>
Uhr Uhr
...@@ -8,4 +8,4 @@ const Uhr = () => { ...@@ -8,4 +8,4 @@ const Uhr = () => {
); );
}; };
export default Uhr; export default UhrPanel;
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
import React from "react"; import React from "react";
import FahrplanPanel from "./Fahrplan/FahrplanPanel"; import FahrplanPanel from "./Fahrplan/FahrplanPanel";
import {PanelDefinition} from "../types/LayoutConfig"; import {PanelDefinition} from "../types/LayoutConfig";
import BildPanel from "./Bild";
import PanelWrapper from "../meta/PanelWrapper"; import PanelWrapper from "../meta/PanelWrapper";
import BildPanel from "./Bild/BildPanel";
/* /*
* First, please claim a unique id for your panel here. Convention is that it is all lowercase, in snake-case to be * First, please claim a unique id for your panel here. Convention is that it is all lowercase, in snake-case to be
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment