Skip to content

Commit

Permalink
(refactor): creating layout module
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-house committed Aug 7, 2018
1 parent adcfcb7 commit f3cda67
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 11 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions src/components/HelloWorld/index.js
@@ -0,0 +1 @@
export { default as HelloWorld } from "./HelloWorld";
6 changes: 2 additions & 4 deletions src/components/index.js
@@ -1,4 +1,2 @@
export { default as SidebarMenu } from "./SidebarMenu";
export { default as Content } from "./Content";
export { default as Footer } from "./Footer";
export { default as NavBar } from "./NavBar";
export { Content, Footer, SidebarMenu, NavBar } from "./layout";
export { HelloWorld } from "./HelloWorld";
File renamed without changes.
@@ -1,7 +1,7 @@
import React from 'react';
import HelloWorld from './HelloWorld.js';
import { HelloWorld } from '../../HelloWorld';
import {Route} from 'react-router-dom';
import '../_styles/Content.css';
import './Content.css';

class Content extends React.Component {
render() {
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/Content/index.js
@@ -0,0 +1 @@
export { default as Content } from "./Content";
File renamed without changes.
@@ -1,6 +1,6 @@
import React from 'react'
import {Link} from 'office-ui-fabric-react/lib-commonjs/Link'
import '../_styles/Footer.css'
import './Footer.css'

const Footer = () => (
<div className="footer-container">
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/Footer/index.js
@@ -0,0 +1 @@
export { default as Footer } from "./Footer";
File renamed without changes.
@@ -1,8 +1,8 @@
import React from 'react'
import {SearchBox} from 'office-ui-fabric-react/lib-commonjs/SearchBox'
import '../_styles/NavBar.css'
import { SearchBox } from 'office-ui-fabric-react/lib-commonjs/SearchBox'
import './NavBar.css'

const NavBar = ({onChange, onSearch}) => (
const NavBar = ( { onChange, onSearch } ) => (
<div className="NavBar">
<div className="logo ms-font-xl">
<strong>React with Firebase and Fabric UI</strong>
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/NavBar/index.js
@@ -0,0 +1 @@
export { default as NavBar } from "./NavBar";
File renamed without changes.
@@ -1,5 +1,5 @@
import React from 'react'
import '../_styles/SideBarMenu.css'
import './SideBarMenu.css'
import {Link} from 'react-router-dom';

const SidebarMenu = ({groups, expanded, collapsed}) => (
Expand Down
1 change: 1 addition & 0 deletions src/components/layout/SidebarMenu/index.js
@@ -0,0 +1 @@
export { default as SidebarMenu } from "./SidebarMenu";
4 changes: 4 additions & 0 deletions src/components/layout/index.js
@@ -0,0 +1,4 @@
export { Content } from "./Content";
export { Footer } from "./Footer";
export { NavBar } from "./NavBar";
export { SidebarMenu } from "./SidebarMenu";

0 comments on commit f3cda67

Please sign in to comment.