Commit e7958dce authored by Denis Sedura's avatar Denis Sedura

Add Initial screen

parents
# OSX
#
.DS_Store
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
Pods/
ios/fastlane/README.md
ios/fastlane/report.xml
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
avd.zip
# node.js
#
node_modules/
npm-debug.log
yarn-error.log
# BUCK
buck-out/
\.buckd/
*.keystore
!tipsi-release-key.keystore
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
# Sublime
*.sublime-project
*.sublime-workspace
# VSCode
.vscode
jsconfig.json
# tests
coverage
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import { checkApiVersion } from 'tipsi_api/actions'
import { checkApiSelector } from 'tipsi_api/selectors'
function enhanceInitialComponent(ComposedComponent) {
class Wrapper extends Component {
static propTypes = {
checkApiVersion: PropTypes.func.isRequired,
supported: PropTypes.bool.isRequired,
}
render() {
return (
<ComposedComponent {...this.props} test={this.test}/>
)
}
}
const mapStateToProps = createSelector(
checkApiSelector,
checkApi => ({ supported: checkApi.supported })
)
return connect(mapStateToProps, { checkApiVersion })(Wrapper)
}
export default enhanceInitialComponent
export { default as enhanceInitialComponent } from './InitialScreen'
export { enhanceInitialComponent } from './InitialScreen'
{
"name": "tipsi-shared",
"version": "0.0.1",
"private": true,
"description": "",
"author": "",
"license": "ISC",
"devDependencies": {
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-redux": "^5.0.2",
"react-transition-group": "^2.2.0",
"redux": "^3.6.0",
"redux-persist": "^4.1.0",
"redux-persist-transform-filter": "0.0.6",
"redux-thunk": "^2.2.0",
"reselect": "^3.0.1",
"prop-types": "^15.5.10",
"tipsi_api": "git+ssh://git@git.gettipsi.com/tipsi_frontend/tipsi_api.git#1.30.0"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment