Skip to content

Commit

Permalink
Address site link feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
justinshreve authored and timmyc committed Apr 19, 2018
1 parent 726c20a commit ffe13e3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions client/extensions/woocommerce/components/action-header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { isArray } from 'lodash';
*/
import ActionButtons from './actions';
import Button from 'components/button';
import { getLink } from 'woocommerce/lib/nav-utils';
import { getSelectedSiteWithFallback } from 'woocommerce/state/sites/selectors';
import { setLayoutFocus } from 'state/ui/layout-focus/actions';
import SiteIcon from 'blocks/site-icon';
Expand Down Expand Up @@ -44,8 +43,6 @@ class ActionHeader extends React.Component {
render() {
const { children, primaryLabel, site } = this.props;

const link = getLink( 'https://:site/', site );

return (
<header className="action-header">
<Button
Expand All @@ -56,15 +53,11 @@ class ActionHeader extends React.Component {
<Gridicon icon="chevron-left" />
</Button>
<div className="action-header__content">
<a href={ link }>
<a href={ site.URL } aria-label={ site.title }>
<SiteIcon site={ site } />
</a>
<div className="action-header__details">
{ site && (
<p className="action-header__site-title">
<a href={ link }>{ site.title }</a>
</p>
) }
{ site && <p className="action-header__site-title">{ site.title }</p> }
{ this.renderBreadcrumbs() }
</div>
</div>
Expand Down

0 comments on commit ffe13e3

Please sign in to comment.