Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(ui): update user profile menu icon
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Nov 3, 2019
1 parent 1797a31 commit 35b7a40
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 7 deletions.
6 changes: 6 additions & 0 deletions icons/user-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions renderer/components/Icon/UserCircle.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'

const SvgUserCircle = props => (
<svg height="1em" viewBox="0 0 13 13" width="1em" {...props}>
<g
fill="none"
fillRule="evenodd"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={0.813}
>
<path d="M6.5 2.438a2.844 2.844 0 110 5.688 2.844 2.844 0 010-5.688zm3.745 8.87a5.28 5.28 0 00-7.466-.023l-.024.023" />
<path d="M6.5.406a6.094 6.094 0 110 12.188A6.094 6.094 0 016.5.406z" />
</g>
</svg>
)

export default SvgUserCircle
14 changes: 7 additions & 7 deletions renderer/components/Settings/SettingsMenu/SettingsMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Dropmenu, StatusIndicator } from 'components/UI'
import { WalletName } from 'components/Util'
import Logout from 'components/Icon/Logout'
import Settings from 'components/Icon/Settings'
import User from 'components/Icon/User'
import UserCircle from 'components/Icon/UserCircle'
import messages from './messages'

const buildLocaleMenu = localeProps => {
Expand Down Expand Up @@ -65,18 +65,18 @@ const SettingsMenu = ({
const openProfile = () => openModal('PROFILE')

const items = [
{
id: 'profile',
title: <FormattedMessage {...messages.profile_title} />,
icon: <UserCircle />,
onClick: openProfile,
},
{
id: 'settings',
title: <FormattedMessage {...messages.settings_title} />,
icon: <Settings />,
onClick: openSettings,
},
{
id: 'profile',
title: <FormattedMessage {...messages.profile_title} />,
icon: <User />,
onClick: openProfile,
},
{
id: 'logout',
title: (
Expand Down
2 changes: 2 additions & 0 deletions stories/_general/icons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import Spinner from 'components/Icon/Spinner'
import Success from 'components/Icon/Success'
import Twitter from 'components/Icon/Twitter'
import User from 'components/Icon/User'
import UserCircle from 'components/Icon/UserCircle'
import Warning from 'components/Icon/Warning'
import X from 'components/Icon/X'
import Zap from 'components/Icon/Zap'
Expand Down Expand Up @@ -141,6 +142,7 @@ const zapIconsList = {
Success,
Twitter,
User,
UserCircle,
Warning,
X,
Zap,
Expand Down
2 changes: 2 additions & 0 deletions stories/icons/icon.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import Spinner from 'components/Icon/Spinner'
import Success from 'components/Icon/Success'
import Twitter from 'components/Icon/Twitter'
import User from 'components/Icon/User'
import UserCircle from 'components/Icon/UserCircle'
import Warning from 'components/Icon/Warning'
import X from 'components/Icon/X'
import Zap from 'components/Icon/Zap'
Expand Down Expand Up @@ -140,6 +141,7 @@ const zapIconsList = {
Success,
Twitter,
User,
UserCircle,
Warning,
X,
Zap,
Expand Down

0 comments on commit 35b7a40

Please # to comment.