New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-bootstrap-widgets

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-widgets - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

9

lib/Topbar/TopBarLink.js

@@ -23,3 +23,4 @@ 'use strict';

to = _ref.to,
onClick = _ref.onClick;
onClick = _ref.onClick,
exact = _ref.exact;
return links ? _react2.default.createElement(_DropDown2.default, { label: label, items: links }) : _react2.default.createElement(

@@ -30,3 +31,3 @@ 'li',

_reactRouterDom.NavLink,
{ className: 'nav-link ml-1 mr-1', to: to },
{ className: 'nav-link ml-1 mr-1', exact: exact, to: to },
label

@@ -41,2 +42,6 @@ ) : _react2.default.createElement(

TopBarLink.defaultProps = {
exact: false
};
exports.default = TopBarLink;
{
"name": "react-bootstrap-widgets",
"version": "0.1.2",
"version": "0.1.3",
"description": "Generic react components based on twitter bootstrap",

@@ -18,3 +18,3 @@ "main": "lib/index.js",

"prepublishOnly": "npm run build",
"deploy": "npm run build:example && cpr 404.html build/ && gh-pages -d build"
"deploy": "npm run build:playground && cp 404.html build/ && gh-pages -d build"
},

@@ -21,0 +21,0 @@ "devDependencies": {

@@ -16,3 +16,3 @@ import ReactDOM from 'react-dom'

<Route path='/' exact component={Home} />
<Route path='/Topbar' exact component={TopbarExample} />
<Route path='/Topbar' component={TopbarExample} />
<Route path='/Paginator' exact component={PaginatorExample} />

@@ -19,0 +19,0 @@ <Route path='/PropertiesGrid' exact component={PropertiesGridExample} />

@@ -26,3 +26,4 @@ import React, { Fragment } from 'react'

label: 'Home',
to: '/',
exact: true,
to: '/TopBar',
},

@@ -40,3 +41,3 @@ // Custom jsx and click

label: 'Settings',
to: '/settings',
to: '/TopBar/settings',
},

@@ -43,0 +44,0 @@ {

@@ -5,3 +5,3 @@ import React from 'react'

const TopBarLink = ({ label, links, to, onClick }) => (
const TopBarLink = ({ label, links, to, onClick, exact }) => (
links

@@ -12,3 +12,3 @@ ? <DropDown label={label} items={links} />

{to
? <NavLink className='nav-link ml-1 mr-1' to={to}>{label}</NavLink>
? <NavLink className='nav-link ml-1 mr-1' exact={exact} to={to}>{label}</NavLink>
: <span className='nav-link ml-1 mr-1'>{label}</span>

@@ -20,2 +20,6 @@ }

TopBarLink.defaultProps = {
exact: false,
}
export default TopBarLink

Sorry, the diff of this file is not supported yet

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