Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
merge.props
Browse files Browse the repository at this point in the history
  • Loading branch information
Suguru Hirahara committed May 16, 2017
1 parent d7975d0 commit 9edeee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/renderer/components/navigation/navigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,12 @@ class NavigationBar extends React.Component {
props.activeTabShowingMessageBox = activeTabShowingMessageBox
props.locationInfo = state.get('locationInfo')
props.titleMode = titleMode
props.isWideURLbarEnabled = getSetting(settings.WIDE_URL_BAR)

return props
}

render () {
const wideURLbar = getSetting(settings.WIDE_URL_BAR)

if (this.props.activeFrameKey === undefined ||
this.props.siteSettings === undefined) {
return null
Expand All @@ -180,7 +179,7 @@ class NavigationBar extends React.Component {
data-frame-key={this.props.activeFrameKey}
className={cx({
titleMode: this.props.titleMode,
[css(styles.navigator_wide)]: wideURLbar
[css(styles.navigator_wide)]: this.props.isWideURLbarEnabled
})}>
{
this.props.bookmarkDetail && this.props.bookmarkDetail.get('isBookmarkHanger')
Expand Down
5 changes: 2 additions & 3 deletions app/renderer/components/navigation/urlBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ class UrlBar extends React.Component {
props.isSelected = urlbar.get('selected')
props.isFocused = urlbar.get('focused')
props.isHTTPPage = isHTTPPage
props.isWideURLbarEnabled = getSetting(settings.WIDE_URL_BAR)
props.activateSearchEngine = activateSearchEngine
props.searchSelectEntry = urlbarSearchDetail
props.autocompleteEnabled = urlbar.getIn(['suggestions', 'autocompleteEnabled'])
Expand All @@ -483,12 +484,10 @@ class UrlBar extends React.Component {
}

render () {
const wideURLbar = getSetting(settings.WIDE_URL_BAR)

return <form
className={cx({
urlbarForm: true,
[css(styles.urlbarForm_wide)]: wideURLbar,
[css(styles.urlbarForm_wide)]: this.props.isWideURLbarEnabled,
noBorderRadius: this.props.noBorderRadius
})}
action='#'
Expand Down

0 comments on commit 9edeee4

Please sign in to comment.