electron-react-titlebar
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -27,4 +27,4 @@ 'use strict'; | ||
_react2.default.createElement('div', { className: 'resize-handle resize-handle-left' }), | ||
typeof icon !== 'undefined' && _react2.default.createElement('img', { className: 'icon', src: icon }), | ||
_react2.default.createElement(_menu.MenuBar, { menu: menu }), | ||
!!icon && _react2.default.createElement('img', { className: 'icon', src: icon }), | ||
!!menu && _react2.default.createElement(_menu.MenuBar, { menu: menu }), | ||
children, | ||
@@ -31,0 +31,0 @@ _react2.default.createElement(_windowControls.WindowControls, { disableMinimize: disableMinimize, disableMaximize: disableMaximize }) |
{ | ||
"name": "electron-react-titlebar", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A github desktop style title bar component for electron.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,15 +40,15 @@ # electron-react-titlebar | ||
Disable minimize button | ||
Disable minimize button (optional). | ||
#### disableMaximize | ||
Disable maximize button | ||
Disable maximize button (optional). | ||
#### icon | ||
Path to icon file. | ||
Path to icon file (optional). | ||
#### menu | ||
Menu template of [Electron's Menu](https://github.com/electron/electron/blob/master/docs/api/menu.md#main-process) | ||
Menu template of [Electron's Menu](https://github.com/electron/electron/blob/master/docs/api/menu.md#main-process) (optional). | ||
@@ -55,0 +55,0 @@ Note: electron-react-titlebar is supporting a subset of [Electron's MenuItem](https://github.com/electron/electron/blob/master/docs/api/menu-item.md). |
@@ -11,4 +11,4 @@ import React from 'react' | ||
<div className="resize-handle resize-handle-left" /> | ||
{typeof icon !== 'undefined' && <img className="icon" src={icon} />} | ||
<MenuBar menu={menu} /> | ||
{!!icon && <img className="icon" src={icon} />} | ||
{!!menu && <MenuBar menu={menu} />} | ||
{children} | ||
@@ -15,0 +15,0 @@ <WindowControls disableMinimize={disableMinimize} disableMaximize={disableMaximize} /> |
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
100010