From 464187a2422646c161fe9d8da9a839ce8e96c2a6 Mon Sep 17 00:00:00 2001 From: Jonathan Zobro Date: Mon, 2 Oct 2017 11:32:12 +0700 Subject: [PATCH] feature(nav): move Nav to components/Nav --- .../app/components/components => components/Nav}/Nav.js | 0 .../app/components/components => components/Nav}/Nav.scss | 2 +- app/components/Nav/index.js | 3 +++ app/routes/app/components/App.js | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) rename app/{routes/app/components/components => components/Nav}/Nav.js (100%) rename app/{routes/app/components/components => components/Nav}/Nav.scss (98%) create mode 100644 app/components/Nav/index.js diff --git a/app/routes/app/components/components/Nav.js b/app/components/Nav/Nav.js similarity index 100% rename from app/routes/app/components/components/Nav.js rename to app/components/Nav/Nav.js diff --git a/app/routes/app/components/components/Nav.scss b/app/components/Nav/Nav.scss similarity index 98% rename from app/routes/app/components/components/Nav.scss rename to app/components/Nav/Nav.scss index 0770d7a5..af8aa10d 100644 --- a/app/routes/app/components/components/Nav.scss +++ b/app/components/Nav/Nav.scss @@ -1,4 +1,4 @@ -@import '../../../../variables.scss'; +@import '../../variables.scss'; .nav { display: inline-block; diff --git a/app/components/Nav/index.js b/app/components/Nav/index.js new file mode 100644 index 00000000..768d2c60 --- /dev/null +++ b/app/components/Nav/index.js @@ -0,0 +1,3 @@ +import Nav from './Nav' + +export default Nav diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js index 42f112e2..4b13637d 100644 --- a/app/routes/app/components/App.js +++ b/app/routes/app/components/App.js @@ -2,8 +2,8 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import LoadingBolt from 'components/LoadingBolt' import Form from 'components/Form' +import Nav from 'components/Nav' import ModalRoot from './components/ModalRoot' -import Nav from './components/Nav' import styles from './App.scss' class App extends Component {