From ccbe96dfc2cdf3d0c304882e2d195178f181358b Mon Sep 17 00:00:00 2001 From: ghalestrilo Date: Tue, 21 Jul 2020 18:18:19 -0300 Subject: [PATCH] :truck: move preferences creators to components/Preferences --- .../IDE/components/Preferences}/PreferenceCreators.jsx | 0 .../components/{Preferences.jsx => Preferences/index.jsx} | 6 +++--- client/modules/IDE/pages/IDEView.jsx | 2 +- client/modules/Mobile/MobilePreferences.jsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename client/{common/helpers => modules/IDE/components/Preferences}/PreferenceCreators.jsx (100%) rename client/modules/IDE/components/{Preferences.jsx => Preferences/index.jsx} (98%) diff --git a/client/common/helpers/PreferenceCreators.jsx b/client/modules/IDE/components/Preferences/PreferenceCreators.jsx similarity index 100% rename from client/common/helpers/PreferenceCreators.jsx rename to client/modules/IDE/components/Preferences/PreferenceCreators.jsx diff --git a/client/modules/IDE/components/Preferences.jsx b/client/modules/IDE/components/Preferences/index.jsx similarity index 98% rename from client/modules/IDE/components/Preferences.jsx rename to client/modules/IDE/components/Preferences/index.jsx index 1a658c3c..5fd5147d 100644 --- a/client/modules/IDE/components/Preferences.jsx +++ b/client/modules/IDE/components/Preferences/index.jsx @@ -7,9 +7,9 @@ import { withTranslation } from 'react-i18next'; // import { connect } from 'react-redux'; // import * as PreferencesActions from '../actions/preferences'; -import PlusIcon from '../../../images/plus.svg'; -import MinusIcon from '../../../images/minus.svg'; -import beepUrl from '../../../sounds/audioAlert.mp3'; +import PlusIcon from '../../../../images/plus.svg'; +import MinusIcon from '../../../../images/minus.svg'; +import beepUrl from '../../../../sounds/audioAlert.mp3'; class Preferences extends React.Component { constructor(props) { diff --git a/client/modules/IDE/pages/IDEView.jsx b/client/modules/IDE/pages/IDEView.jsx index fbcecf1b..b28e505f 100644 --- a/client/modules/IDE/pages/IDEView.jsx +++ b/client/modules/IDE/pages/IDEView.jsx @@ -10,7 +10,7 @@ import Editor from '../components/Editor'; import Sidebar from '../components/Sidebar'; import PreviewFrame from '../components/PreviewFrame'; import Toolbar from '../components/Toolbar'; -import Preferences from '../components/Preferences'; +import Preferences from '../components/Preferences/index'; import NewFileModal from '../components/NewFileModal'; import NewFolderModal from '../components/NewFolderModal'; import UploadFileModal from '../components/UploadFileModal'; diff --git a/client/modules/Mobile/MobilePreferences.jsx b/client/modules/Mobile/MobilePreferences.jsx index 7625aacd..c7991c2f 100644 --- a/client/modules/Mobile/MobilePreferences.jsx +++ b/client/modules/Mobile/MobilePreferences.jsx @@ -14,7 +14,7 @@ import Header from '../../components/mobile/Header'; import PreferencePicker from '../../components/mobile/PreferencePicker'; import { ExitIcon } from '../../common/icons'; import { remSize, prop } from '../../theme'; -import { optionsOnOff, optionsPickOne, preferenceOnOff } from '../../common/helpers/PreferenceCreators'; +import { optionsOnOff, optionsPickOne, preferenceOnOff } from '../IDE/components/Preferences/PreferenceCreators'; const Content = styled.div` z-index: 0;