Socket
Socket
Sign inDemoInstall

webmotors-cockpit-structure

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webmotors-cockpit-structure - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

11

CockpitHeader.js

@@ -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 @@ ),

2

package.json
{
"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 @@ {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc