Fix TM_FILENAME_BASE in some Redux snippets

This commit is contained in:
Seong Yong-ju 2019-12-25 22:49:11 +09:00
parent d76f3afdf2
commit 6c96332341
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)