Skip to content

Commit e7739e8

Browse files
author
Ives van Hoorne
committed
Remove the cheat code for deployment
This reverts commit a4ae0de.
1 parent 8d61f77 commit e7739e8

File tree

6 files changed

+6
-39
lines changed

6 files changed

+6
-39
lines changed

src/app/containers/Preferences/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ const ContentContainer = styled.div`
3535

3636
type Props = {
3737
user: CurrentUser,
38-
integrationsEnabled: boolean,
3938
};
4039

4140
const mapStateToProps = state => ({
4241
user: currentUserSelector(state),
43-
integrationsEnabled: state.features.integrations,
4442
});
4543
class Preferences extends React.PureComponent {
4644
props: Props;
@@ -72,8 +70,7 @@ class Preferences extends React.PureComponent {
7270
icon: <BrowserIcon />,
7371
content: <PreviewSettings />,
7472
},
75-
signedIn &&
76-
this.props.integrationsEnabled && {
73+
signedIn && {
7774
title: 'Integrations',
7875
icon: <IntegrationIcon />,
7976
content: <Integrations />,

src/app/pages/Sandbox/Editor/Content/Header/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ type Props = {
9999
modalActions: typeof modalActionCreators,
100100
user: CurrentUser,
101101
canSave: boolean,
102-
integrationsEnabled: boolean,
103102
};
104103

105104
export default class Header extends React.PureComponent<Props> {
@@ -229,8 +228,7 @@ export default class Header extends React.PureComponent<Props> {
229228
/>
230229
<Action title="Download" Icon={Download} onClick={this.zipSandbox} />
231230
{user.jwt &&
232-
sandbox.owned &&
233-
this.props.integrationsEnabled && (
231+
sandbox.owned && (
234232
<Action
235233
title="Deploy"
236234
Icon={NowIcon}

src/app/pages/Sandbox/Editor/Content/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ type Props = {
5353
userActions: typeof userActionCreators,
5454
modalActions: typeof modalActionCreators,
5555
previewApiActions: typeof previewApiActionCreators,
56-
integrationsEnabled: boolean,
5756
};
5857

5958
type State = {
@@ -72,13 +71,11 @@ const mapStateToProps = createSelector(
7271
currentUserSelector,
7372
modulesFromSandboxSelector,
7473
directoriesFromSandboxSelector,
75-
state => state.features.integrations,
76-
(preferences, user, modules, directories, integrationsEnabled) => ({
74+
(preferences, user, modules, directories) => ({
7775
preferences,
7876
user,
7977
modules,
8078
directories,
81-
integrationsEnabled,
8279
})
8380
);
8481
const mapDispatchToProps = dispatch => ({
@@ -227,7 +224,6 @@ class EditorPreview extends React.PureComponent<Props, State> {
227224
workspaceHidden={workspaceHidden}
228225
toggleWorkspace={toggleWorkspace}
229226
canSave={notSynced}
230-
integrationsEnabled={this.props.integrationsEnabled}
231227
/>
232228
<SplitPane
233229
onDragStarted={this.startResizing}

src/app/store/features/reducer.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/app/store/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ export default history => {
2222
composeEnhancers(applyMiddleware(thunk, routerMiddleware(history)))
2323
);
2424

25-
window.store = store;
25+
if (process.env.NODE_ENV === 'development') {
26+
window.store = store;
27+
}
2628

2729
return store;
2830
};

src/app/store/root-reducer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ import notificationsReducer from './notifications/reducer';
99
import preferencesReducer from './preferences/reducer';
1010
import userReducer from './user/reducer';
1111
import connectionStatusReducer from './connection/reducer';
12-
import featuresReducer from './features/reducer';
1312

1413
export default combineReducers({
1514
entities: entityReducer,
1615
contextMenu: contextMenuReducer,
1716
connectionStatus: connectionStatusReducer,
18-
features: featuresReducer,
1917
modal: modalReducer,
2018
notifications: notificationsReducer,
2119
preferences: preferencesReducer,

0 commit comments

Comments
 (0)