Skip to content

Commit

Permalink
Merge pull request #711 from cozy/icons-svgr
Browse files Browse the repository at this point in the history
feat: Use svgr icon in AppNavButtons
  • Loading branch information
ptbrowne authored Nov 12, 2020
2 parents 8f0c4d7 + 29b77d9 commit 32918ba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Apps/AppNavButtons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React, { Component } from 'react'
import { connect } from 'react-redux'

import { getHomeApp } from 'lib/reducers'
import TopIcon from 'cozy-ui/react/Icons/Top'
import BottomIcon from 'cozy-ui/react/Icons/Top'

import { translate } from 'cozy-ui/react/I18n'
import Icon from 'cozy-ui/react/Icon'
Expand Down Expand Up @@ -73,7 +75,11 @@ class AppNavButton extends Component {
)}
<span className="coz-nav-app-name">{displayName}</span>
{!isPublic && (
<Icon icon={opened ? 'top' : 'bottom'} color="#95999d" size="12" />
<Icon
icon={opened ? TopIcon : BottomIcon}
color="#95999d"
size="12"
/>
)}
</button>
</div>
Expand Down

0 comments on commit 32918ba

Please sign in to comment.