Skip to content

Commit

Permalink
Merge pull request #37 from arcticicestudio/feature/gh-36-root-core-c…
Browse files Browse the repository at this point in the history
…ontainer-component

"Root" core container component (data provider)
  • Loading branch information
arcticicestudio authored Nov 20, 2018
2 parents 4fe5473 + 26b91ba commit 0465f37
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/components/containers/core/Root/Root.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import React, { Fragment } from "react";
import PropTypes from "prop-types";

/**
* The root container.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.1.0
*/
const Root = ({ children }) => <Fragment>{children}</Fragment>;

Root.propTypes = {
children: PropTypes.node.isRequired
};

export default Root;
1 change: 1 addition & 0 deletions src/components/containers/core/Root/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./Root";
22 changes: 22 additions & 0 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/
import React from "react";

import Root from "containers/core/Root";

/**
* The landing page component representing the root/index of the site.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.1.0
*/
const Landing = () => <Root />;

export default Landing;

0 comments on commit 0465f37

Please sign in to comment.