Fix TM_FILENAME_BASE in some Redux snippets
This commit is contained in:
parent
d76f3afdf2
commit
6c96332341
|
@ -9,7 +9,7 @@ import React, { Component } from 'react'
|
|||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
|
||||
export class ${1:${TM_FILENAME_BASE}} extends Component {
|
||||
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
|
||||
static propTypes = {
|
||||
${2:prop}: ${3:PropTypes}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
|
|||
|
||||
})
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})
|
||||
export default connect(mapStateToProps, mapDispatchToProps)($1)
|
|
@ -10,7 +10,7 @@ import { View, Text } from 'react-native'
|
|||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
|
||||
export class ${1:${TM_FILENAME_BASE}} extends Component {
|
||||
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
|
||||
static propTypes = {
|
||||
${2:prop}: ${3:PropTypes}
|
||||
}
|
||||
|
@ -32,4 +32,4 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
|
|||
|
||||
})
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})
|
||||
export default connect(mapStateToProps, mapDispatchToProps)($1)
|
Loading…
Reference in New Issue