From 81f3160a4dfca95e6073da10810c3015f7458fc8 Mon Sep 17 00:00:00 2001 From: Jonathan Zobro Date: Tue, 3 Oct 2017 02:21:23 +0700 Subject: [PATCH] (refactor)ModalRoot: move from /routes to /components --- .../app/components => }/components/ModalRoot/ModalRoot.js | 0 .../app/components => }/components/ModalRoot/ModalRoot.scss | 4 ++-- .../ModalRoot}/SuccessfulSendCoins.js | 0 .../ModalRoot}/SuccessfulSendCoins.scss | 4 ++-- app/{routes/app/components => }/components/ModalRoot/index.js | 0 app/routes/app/components/App.js | 2 +- .../components/ModalRoot/SuccessfulSendCoins/index.js | 3 --- 7 files changed, 5 insertions(+), 8 deletions(-) rename app/{routes/app/components => }/components/ModalRoot/ModalRoot.js (100%) rename app/{routes/app/components => }/components/ModalRoot/ModalRoot.scss (92%) rename app/{routes/app/components/components/ModalRoot/SuccessfulSendCoins => components/ModalRoot}/SuccessfulSendCoins.js (100%) rename app/{routes/app/components/components/ModalRoot/SuccessfulSendCoins => components/ModalRoot}/SuccessfulSendCoins.scss (92%) rename app/{routes/app/components => }/components/ModalRoot/index.js (100%) delete mode 100644 app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/index.js diff --git a/app/routes/app/components/components/ModalRoot/ModalRoot.js b/app/components/ModalRoot/ModalRoot.js similarity index 100% rename from app/routes/app/components/components/ModalRoot/ModalRoot.js rename to app/components/ModalRoot/ModalRoot.js diff --git a/app/routes/app/components/components/ModalRoot/ModalRoot.scss b/app/components/ModalRoot/ModalRoot.scss similarity index 92% rename from app/routes/app/components/components/ModalRoot/ModalRoot.scss rename to app/components/ModalRoot/ModalRoot.scss index b20daf3a..3622414c 100644 --- a/app/routes/app/components/components/ModalRoot/ModalRoot.scss +++ b/app/components/ModalRoot/ModalRoot.scss @@ -1,4 +1,4 @@ -@import '../../../../../variables.scss'; +@import '../../variables.scss'; .container { position: absolute; @@ -39,4 +39,4 @@ width: 32px; height: 32px; } -} \ No newline at end of file +} diff --git a/app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/SuccessfulSendCoins.js b/app/components/ModalRoot/SuccessfulSendCoins.js similarity index 100% rename from app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/SuccessfulSendCoins.js rename to app/components/ModalRoot/SuccessfulSendCoins.js diff --git a/app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/SuccessfulSendCoins.scss b/app/components/ModalRoot/SuccessfulSendCoins.scss similarity index 92% rename from app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/SuccessfulSendCoins.scss rename to app/components/ModalRoot/SuccessfulSendCoins.scss index b562cf30..ef7bd550 100644 --- a/app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/SuccessfulSendCoins.scss +++ b/app/components/ModalRoot/SuccessfulSendCoins.scss @@ -1,4 +1,4 @@ -@import '../../../../../../variables.scss'; +@import '../../variables.scss'; .container { position: relative; @@ -34,4 +34,4 @@ width: 15%; margin: 0 auto; } -} \ No newline at end of file +} diff --git a/app/routes/app/components/components/ModalRoot/index.js b/app/components/ModalRoot/index.js similarity index 100% rename from app/routes/app/components/components/ModalRoot/index.js rename to app/components/ModalRoot/index.js diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js index 42f112e2..56ca0186 100644 --- a/app/routes/app/components/App.js +++ b/app/routes/app/components/App.js @@ -2,7 +2,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import LoadingBolt from 'components/LoadingBolt' import Form from 'components/Form' -import ModalRoot from './components/ModalRoot' +import ModalRoot from 'components/ModalRoot' import Nav from './components/Nav' import styles from './App.scss' diff --git a/app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/index.js b/app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/index.js deleted file mode 100644 index b6c90a73..00000000 --- a/app/routes/app/components/components/ModalRoot/SuccessfulSendCoins/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import SuccessfulSendCoins from './SuccessfulSendCoins' - -export default SuccessfulSendCoins