Skip to content

Commit

Permalink
chore: Update eslint to version 4.19.1 (#1351)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and Gregor Herdmann committed Apr 4, 2018
1 parent 24930b3 commit 0308cbb
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 51 deletions.
23 changes: 11 additions & 12 deletions electron/renderer/src/components/Sidebar.js
Expand Up @@ -92,18 +92,17 @@ const Sidebar = ({
</div>
</div>
))}
{!isAddingAccount &&
!hasReachedLimitOfAccounts && (
<AddAccountMenuTrigger
id="account"
onClick={preventFocus(event => {
connected.toggleAddAccountMenuVisibility(
...centerOfEventTarget(event)
);
})}
forceVisible={isAddAccountMenuVisible}
/>
)}
{!isAddingAccount && !hasReachedLimitOfAccounts && (
<AddAccountMenuTrigger
id="account"
onClick={preventFocus(event => {
connected.toggleAddAccountMenuVisibility(
...centerOfEventTarget(event)
);
})}
forceVisible={isAddAccountMenuVisible}
/>
)}

{isAddAccountMenuVisible && <AddAccountMenu />}
{isEditAccountMenuVisible && <EditAccountMenu />}
Expand Down
21 changes: 10 additions & 11 deletions electron/renderer/src/components/Webviews.js
Expand Up @@ -145,17 +145,16 @@ class Webviews extends Component {
onIpcMessage={event => this._onIpcMessage(account, event)}
webpreferences="backgroundThrottling=false"
/>
{this.state.canDelete[account.id] &&
account.visible && (
<div className="Webviews-close" onClick={() => this._onWebviewClose(account)}>
<svg width="16" height="16" viewBox="0 0 16 16">
<path
d="M2.757 14.657L8 9.414l5.243 5.243 1.414-1.414L9.414 8l5.243-5.243-1.414-1.414L8 6.586 2.757 1.343 1.343 2.757 6.586 8l-5.243 5.243"
fillRule="evenodd"
/>
</svg>
</div>
)}
{this.state.canDelete[account.id] && account.visible && (
<div className="Webviews-close" onClick={() => this._onWebviewClose(account)}>
<svg width="16" height="16" viewBox="0 0 16 16">
<path
d="M2.757 14.657L8 9.414l5.243 5.243 1.414-1.414L9.414 8l5.243-5.243-1.414-1.414L8 6.586 2.757 1.343 1.343 2.757 6.586 8l-5.243 5.243"
fillRule="evenodd"
/>
</svg>
</div>
)}
</div>
))}
</ul>
Expand Down
61 changes: 34 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -22,7 +22,7 @@
"electron-mocha": "6.0.1",
"electron-packager": "12.0.0",
"electron-winstaller": "2.5.2",
"eslint": "4.18.2",
"eslint": "4.19.1",
"eslint-plugin-react": "7.7.0",
"grunt": "1.0.2",
"grunt-contrib-clean": "1.1.0",
Expand Down

0 comments on commit 0308cbb

Please sign in to comment.