diff --git a/client/modules/IDE/actions/ide.js b/client/modules/IDE/actions/ide.js index fa668e4c..7628ff3f 100644 --- a/client/modules/IDE/actions/ide.js +++ b/client/modules/IDE/actions/ide.js @@ -57,7 +57,6 @@ export function collapseSidebar() { } export function expandConsole() { - console.log('expand console!'); return { type: ActionTypes.EXPAND_CONSOLE }; @@ -69,3 +68,15 @@ export function collapseConsole() { }; } +export function openPreferences() { + return { + type: ActionTypes.OPEN_PREFERENCES + }; +} + +export function closePreferences() { + return { + type: ActionTypes.CLOSE_PREFERENCES + }; +} + diff --git a/client/modules/IDE/actions/preferences.js b/client/modules/IDE/actions/preferences.js index 6314ac7c..1035713a 100644 --- a/client/modules/IDE/actions/preferences.js +++ b/client/modules/IDE/actions/preferences.js @@ -1,17 +1,5 @@ import * as ActionTypes from '../../../constants'; -export function openPreferences() { - return { - type: ActionTypes.OPEN_PREFERENCES - }; -} - -export function closePreferences() { - return { - type: ActionTypes.CLOSE_PREFERENCES - }; -} - export function increaseFont() { return { type: ActionTypes.INCREASE_FONTSIZE diff --git a/client/modules/IDE/components/Preferences.js b/client/modules/IDE/components/Preferences.js index a7ed6627..58b23249 100644 --- a/client/modules/IDE/components/Preferences.js +++ b/client/modules/IDE/components/Preferences.js @@ -1,10 +1,13 @@ import React, { PropTypes } from 'react'; +import InlineSVG from 'react-inlinesvg'; +import classNames from 'classnames'; +import { bindActionCreators } from 'redux'; +import { connect } from 'react-redux'; +import * as PreferencesActions from '../actions/preferences'; -const Isvg = require('react-inlinesvg'); const exitUrl = require('../../../images/exit.svg'); const plusUrl = require('../../../images/plus.svg'); const minusUrl = require('../../../images/minus.svg'); -const classNames = require('classnames'); function Preferences(props) { const preferencesContainerClass = classNames({ @@ -28,7 +31,7 @@ function Preferences(props) { onClick={props.closePreferences} title="exit" > - + @@ -39,7 +42,7 @@ function Preferences(props) { onClick={props.decreaseFont} id="preference-decrease-font-size" > - +
Decrease