diff --git a/app/App.js b/app/App.js index 0c3a07a9c5..c3ac56da90 100644 --- a/app/App.js +++ b/app/App.js @@ -1,7 +1,7 @@ // @flow import React, { Component } from 'react'; import { observer } from 'mobx-react'; -import { ThemeProvider } from 'react-css-themr'; +import { ThemeProvider } from 'react-polymorph/lib/components/ThemeProvider'; import { Router } from 'react-router-dom'; import { addLocaleData, IntlProvider } from 'react-intl'; import en from 'react-intl/locale-data/en'; @@ -11,6 +11,7 @@ import zh from 'react-intl/locale-data/zh'; import ru from 'react-intl/locale-data/ru'; import { Routes } from './Routes'; import { yoroiTheme } from './themes/yoroi'; +import { themeOverrides } from './themes/overrides/index'; import translations from './i18n/translations'; import type { StoresMap } from './stores/index'; import type { ActionsMap } from './actions/index'; @@ -48,15 +49,15 @@ class App extends Component<{ const mergedMessages = Object.assign({}, translations['en-US'], translations[locale]); const currentTheme = 'yoroi'; - const theme = require(`./themes/prebuilt/${currentTheme}.js`); // eslint-disable-line + const themeVars = require(`./themes/prebuilt/${currentTheme}.js`); // eslint-disable-line const mobxDevTools = this.mobxDevToolsInstanceIfDevEnv(); return (
{intl.formatMessage(error)}
} @@ -96,7 +96,7 @@ export default class LanguageSelectionForm extends Component{error}
} diff --git a/app/components/transfer/ErrorPage.js b/app/components/transfer/ErrorPage.js index 645fbc0897..9826a25f06 100644 --- a/app/components/transfer/ErrorPage.js +++ b/app/components/transfer/ErrorPage.js @@ -3,8 +3,8 @@ import React, { Component } from 'react'; import { observer } from 'mobx-react'; import classnames from 'classnames'; import { intlShape } from 'react-intl'; -import Button from 'react-polymorph/lib/components/Button'; -import SimpleButtonSkin from 'react-polymorph/lib/skins/simple/raw/ButtonSkin'; +import { Button } from 'react-polymorph/lib/components/Button'; +import { ButtonSkin } from 'react-polymorph/lib/skins/simple/ButtonSkin'; import LocalizableError from '../../i18n/LocalizableError'; import styles from './ErrorPage.scss'; @@ -50,7 +50,7 @@ export default class ErrorPage extends Component