Skip to content

Instantly share code, notes, and snippets.

@FredrikOseberg
Created April 25, 2020 12:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FredrikOseberg/534e5d9eddffb29aad700afa13bda79f to your computer and use it in GitHub Desktop.
Save FredrikOseberg/534e5d9eddffb29aad700afa13bda79f to your computer and use it in GitHub Desktop.
import Overview from "../components/widgets/Overview/Overview";
import MessageParserDocs from "../components/widgets/docs/MessageParserDocs/MessageParserDocs";
const config = {
...,
state: {
gist: "",
infoBox: "",
},
widgets: [
{
widgetName: "overview",
widgetFunc: (props) => <Overview {...props} />,
mapStateToProps: ["gist"],
},
{
widgetName: "messageParser",
widgetFunc: (props) => <MessageParserDocs {...props} />,
mapStateToProps: ["gist", "infoBox"],
},
],
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment