From 1d566a85b21713997cb50defc62071ecd0c31e9a Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 24 Apr 2017 15:15:25 +0200 Subject: [PATCH] Convert missing icons for ~/ui import --- js/src/routes.js | 4 +- js/src/ui/Icons/index.js | 3 ++ js/src/views/Addresses/addresses.js | 4 +- .../{playground => views/Playground}/index.js | 0 .../Playground}/playground.css | 0 .../Playground}/playground.js | 0 .../Playground}/playground.spec.js | 0 .../Playground}/playgroundExample.js | 0 .../{playground => views/Playground}/store.js | 0 .../Playground}/store.spec.js | 0 .../views/Settings/Background/background.js | 4 +- js/src/views/Settings/Views/views.js | 44 ------------------- js/src/views/Settings/settings.js | 13 +++--- js/src/views/Web/AddressBar/addressBar.js | 5 +-- 14 files changed, 17 insertions(+), 60 deletions(-) rename js/src/{playground => views/Playground}/index.js (100%) rename js/src/{playground => views/Playground}/playground.css (100%) rename js/src/{playground => views/Playground}/playground.js (100%) rename js/src/{playground => views/Playground}/playground.spec.js (100%) rename js/src/{playground => views/Playground}/playgroundExample.js (100%) rename js/src/{playground => views/Playground}/store.js (100%) rename js/src/{playground => views/Playground}/store.spec.js (100%) diff --git a/js/src/routes.js b/js/src/routes.js index e05e55a84..2ca390347 100644 --- a/js/src/routes.js +++ b/js/src/routes.js @@ -71,9 +71,9 @@ const childRoutes = [ { path: 'web/:url', component: Web } ]; -// TODO : use ES6 imports when supported +// TODO: use ES6 imports when supported if (process.env.NODE_ENV !== 'production') { - const Playground = require('./playground').default; + const Playground = require('./views/Playground').default; childRoutes.push({ path: 'playground', diff --git a/js/src/ui/Icons/index.js b/js/src/ui/Icons/index.js index e637a239a..6478ed019 100644 --- a/js/src/ui/Icons/index.js +++ b/js/src/ui/Icons/index.js @@ -19,6 +19,7 @@ export AddressesIcon from 'material-ui/svg-icons/communication/contacts'; export AddIcon from 'material-ui/svg-icons/content/add'; export AppsIcon from 'material-ui/svg-icons/navigation/apps'; export AttachFileIcon from 'material-ui/svg-icons/editor/attach-file'; +export BackgroundIcon from 'material-ui/svg-icons/image/blur-on'; export CancelIcon from 'material-ui/svg-icons/content/clear'; export CheckIcon from 'material-ui/svg-icons/navigation/check'; export CloseIcon from 'material-ui/svg-icons/navigation/close'; @@ -34,6 +35,7 @@ export DoneIcon from 'material-ui/svg-icons/action/done-all'; export DialIcon from 'material-ui/svg-icons/communication/dialpad'; export EditIcon from 'material-ui/svg-icons/content/create'; export ErrorIcon from 'material-ui/svg-icons/alert/error'; +export Ethernet from 'material-ui/svg-icons/action/settings-ethernet'; export FileDownloadIcon from 'material-ui/svg-icons/file/file-download'; export FileUploadIcon from 'material-ui/svg-icons/file/file-upload'; export FileIcon from 'material-ui/svg-icons/editor/insert-drive-file'; @@ -65,6 +67,7 @@ export StarCircleIcon from 'material-ui/svg-icons/action/stars'; export StarIcon from 'material-ui/svg-icons/toggle/star'; export StarOutlineIcon from 'material-ui/svg-icons/toggle/star-border'; export StatusIcon from 'material-ui/svg-icons/action/track-changes'; +export SubdirectoryIcon from 'material-ui/svg-icons/navigation/subdirectory-arrow-left'; export UnlockedIcon from 'material-ui/svg-icons/action/lock-open'; export UpdateIcon from 'material-ui/svg-icons/action/system-update-alt'; export UpdateWaitIcon from 'material-ui/svg-icons/action/update'; diff --git a/js/src/views/Addresses/addresses.js b/js/src/views/Addresses/addresses.js index c02a760f1..41487e5b0 100644 --- a/js/src/views/Addresses/addresses.js +++ b/js/src/views/Addresses/addresses.js @@ -18,13 +18,13 @@ import React, { Component, PropTypes } from 'react'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; -import ContentAdd from 'material-ui/svg-icons/content/add'; import { uniq, isEqual } from 'lodash'; import List from '../Accounts/List'; import Summary from '../Accounts/Summary'; import { AddAddress } from '~/modals'; import { Actionbar, ActionbarExport, ActionbarImport, ActionbarSearch, ActionbarSort, Button, Page } from '~/ui'; +import { AddIcon } from '~/ui/Icons'; import { setVisibleAccounts } from '~/redux/providers/personalActions'; import styles from './addresses.css'; @@ -135,7 +135,7 @@ class Addresses extends Component { const buttons = [