webmotors-cockpit-structure
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -292,5 +292,5 @@ 'use strict'; | ||
{ className: 'cockpit-header__navitem' }, | ||
_react2.default.createElement( | ||
_CockpitUtils.WINDOW && window.location.origin === this.props.UrlCockpit ? _react2.default.createElement( | ||
_reactRouterDom.Link, | ||
{ className: 'cockpit-header__navlink', to: this.props.UrlCockpit + '/usuario?id=' + user.sid, onClick: function onClick() { | ||
{ className: 'cockpit-header__navlink', to: '/usuario?id=' + user.sid, onClick: function onClick() { | ||
return _this4.handlerNavToggle(); | ||
@@ -300,2 +300,9 @@ } }, | ||
'Meu perfil' | ||
) : _react2.default.createElement( | ||
'a', | ||
{ className: 'cockpit-header__navlink', href: this.props.UrlCockpit + '/usuario?id=' + user.sid, onClick: function onClick() { | ||
return _this4.handlerNavToggle(); | ||
} }, | ||
_react2.default.createElement(_webmotorsSvg2.default, { className: 'cockpit-header__navicon', src: this.props.UrlCockpit + '/public/assets/img/icons/name-tag.svg' }), | ||
'Meu perfil' | ||
) | ||
@@ -302,0 +309,0 @@ ), |
{ | ||
"name": "webmotors-cockpit-structure", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Webmotors Cockpit Structure", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -179,6 +179,17 @@ import React, { Component, Fragment, createRef } from 'react'; | ||
<li className="cockpit-header__navitem"> | ||
<Link className="cockpit-header__navlink" to={`${this.props.UrlCockpit}/usuario?id=${user.sid}`} onClick={() => this.handlerNavToggle()}> | ||
<SVG className="cockpit-header__navicon" src={`${this.props.UrlCockpit}/public/assets/img/icons/name-tag.svg`} /> | ||
{'Meu perfil'} | ||
</Link> | ||
{ | ||
WINDOW && window.location.origin === this.props.UrlCockpit | ||
? ( | ||
<Link className="cockpit-header__navlink" to={`/usuario?id=${user.sid}`} onClick={() => this.handlerNavToggle()}> | ||
<SVG className="cockpit-header__navicon" src={`${this.props.UrlCockpit}/public/assets/img/icons/name-tag.svg`} /> | ||
{'Meu perfil'} | ||
</Link> | ||
) | ||
: ( | ||
<a className="cockpit-header__navlink" href={`${this.props.UrlCockpit}/usuario?id=${user.sid}`} onClick={() => this.handlerNavToggle()}> | ||
<SVG className="cockpit-header__navicon" src={`${this.props.UrlCockpit}/public/assets/img/icons/name-tag.svg`} /> | ||
{'Meu perfil'} | ||
</a> | ||
) | ||
} | ||
</li> | ||
@@ -185,0 +196,0 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176604
2608