Add manual plugin

This commit is contained in:
Ceda EI 2020-12-21 17:26:58 +05:30
parent cae5d1c95a
commit 446afb939a
3 changed files with 26 additions and 0 deletions

View File

@ -1,8 +1,10 @@
import Mpd from "./mpd";
import Weather from "./weather";
import Warning from "./warning";
import Manual from "./manual";
export default {
mpd: Mpd,
weather: Weather,
warning: Warning,
manual: Manual
};

23
src/plugins/manual.js Normal file
View File

@ -0,0 +1,23 @@
import React from "react";
import PropTypes from "prop-types";
import GenericPageWithIcon from "./GenericPageWithIcon";
import { StatusInfo } from "grommet-icons";
function Manual(props) {
return (
<GenericPageWithIcon
title={props.data.title}
description={props.data.description}
icon={<StatusInfo color="plain" size="xlarge" />}
close={props.close}
/>);
}
Manual.propTypes = {
data: PropTypes.object,
close: PropTypes.func
};
Manual.pluginName = "Manual";
export default Manual;

View File

@ -9,6 +9,7 @@ function Warning(props) {
title={props.data.title}
description={props.data.description}
icon={<Alert color="#D0C100" size="xlarge" />}
close={props.close}
/>);
}