Add manual plugin
This commit is contained in:
parent
cae5d1c95a
commit
446afb939a
|
@ -1,8 +1,10 @@
|
||||||
import Mpd from "./mpd";
|
import Mpd from "./mpd";
|
||||||
import Weather from "./weather";
|
import Weather from "./weather";
|
||||||
import Warning from "./warning";
|
import Warning from "./warning";
|
||||||
|
import Manual from "./manual";
|
||||||
export default {
|
export default {
|
||||||
mpd: Mpd,
|
mpd: Mpd,
|
||||||
weather: Weather,
|
weather: Weather,
|
||||||
warning: Warning,
|
warning: Warning,
|
||||||
|
manual: Manual
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
|
@ -9,6 +9,7 @@ function Warning(props) {
|
||||||
title={props.data.title}
|
title={props.data.title}
|
||||||
description={props.data.description}
|
description={props.data.description}
|
||||||
icon={<Alert color="#D0C100" size="xlarge" />}
|
icon={<Alert color="#D0C100" size="xlarge" />}
|
||||||
|
close={props.close}
|
||||||
/>);
|
/>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue