Skip to content

Instantly share code, notes, and snippets.

@a-one-d-one
Created April 23, 2018 00:17
Show Gist options
  • Save a-one-d-one/ba88585e8b86fa93c9dfd8da3005370b to your computer and use it in GitHub Desktop.
Save a-one-d-one/ba88585e8b86fa93c9dfd8da3005370b to your computer and use it in GitHub Desktop.
mergeProps (state, ownProps) {
const currentWindow = state.get('currentWindow')
const tabId = ownProps.tabId
const frameKey = frameStateUtil.getFrameKeyByTabId(currentWindow, tabId)
const props = {}
props.isPinned = tabState.isTabPinned(state, tabId)
props.showTabTitle = titleState.showTabTitle(currentWindow, frameKey)
....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment