From cec87a5b2c29f704e2292f6267be0e4f13677a0a Mon Sep 17 00:00:00 2001 From: Alexander Tseung Date: Sat, 18 Aug 2018 18:41:19 -0700 Subject: [PATCH] Update logo wordmark --- app/images/{ => logo}/metamask-fox.svg | 0 .../logo/metamask-logo-horizontal-beta.svg | 115 ++++++++++++++++++ ui/app/app.js | 3 +- .../app-header/app-header.component.js | 23 ++-- ui/app/components/app-header/index.js | 3 +- .../app-header/index.scss} | 51 +++----- ui/app/components/index.scss | 2 + ui/app/css/itcss/components/index.scss | 2 - 8 files changed, 143 insertions(+), 56 deletions(-) rename app/images/{ => logo}/metamask-fox.svg (100%) create mode 100644 app/images/logo/metamask-logo-horizontal-beta.svg rename ui/app/{css/itcss/components/header.scss => components/app-header/index.scss} (64%) diff --git a/app/images/metamask-fox.svg b/app/images/logo/metamask-fox.svg similarity index 100% rename from app/images/metamask-fox.svg rename to app/images/logo/metamask-fox.svg diff --git a/app/images/logo/metamask-logo-horizontal-beta.svg b/app/images/logo/metamask-logo-horizontal-beta.svg new file mode 100644 index 000000000..b1fa040ac --- /dev/null +++ b/app/images/logo/metamask-logo-horizontal-beta.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui/app/app.js b/ui/app/app.js index dbb6146d1..4fcf092ca 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -39,8 +39,7 @@ const Modal = require('./components/modals/index').Modal // Global Alert const Alert = require('./components/alert') -const AppHeader = require('./components/app-header') - +import AppHeader from './components/app-header' import UnlockPage from './components/pages/unlock-page' // Routes diff --git a/ui/app/components/app-header/app-header.component.js b/ui/app/components/app-header/app-header.component.js index 07ca6cf84..b8b002dcc 100644 --- a/ui/app/components/app-header/app-header.component.js +++ b/ui/app/components/app-header/app-header.component.js @@ -1,4 +1,4 @@ -import React, { Component } from 'react' +import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { matchPath } from 'react-router-dom' @@ -11,7 +11,7 @@ const { DEFAULT_ROUTE, INITIALIZE_ROUTE, CONFIRM_TRANSACTION_ROUTE } = require(' const Identicon = require('../identicon') const NetworkIndicator = require('../network') -class AppHeader extends Component { +export default class AppHeader extends PureComponent { static propTypes = { history: PropTypes.object, location: PropTypes.object, @@ -107,20 +107,19 @@ class AppHeader extends Component { onClick={() => history.push(DEFAULT_ROUTE)} > + -
-

{ this.context.t('appName') }

-
- { this.context.t('beta') } -
-
-
+