Skip to content

Commit 6c96332

Browse files
committed
Fix TM_FILENAME_BASE in some Redux snippets
1 parent d76f3af commit 6c96332

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

snippets/rjsx-mode/Redux/rcredux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import React, { Component } from 'react'
99
import PropTypes from 'prop-types'
1010
import { connect } from 'react-redux'
1111

12-
export class ${1:${TM_FILENAME_BASE}} extends Component {
12+
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
1313
static propTypes = {
1414
${2:prop}: ${3:PropTypes}
1515
}
@@ -31,4 +31,4 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
3131

3232
})
3333

34-
export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})
34+
export default connect(mapStateToProps, mapDispatchToProps)($1)

snippets/rjsx-mode/Redux/rncredux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { View, Text } from 'react-native'
1010
import PropTypes from 'prop-types'
1111
import { connect } from 'react-redux'
1212

13-
export class ${1:${TM_FILENAME_BASE}} extends Component {
13+
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
1414
static propTypes = {
1515
${2:prop}: ${3:PropTypes}
1616
}
@@ -32,4 +32,4 @@ const mapDispatchToProps = (dispatch, ownProps) => ({
3232

3333
})
3434

35-
export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})
35+
export default connect(mapStateToProps, mapDispatchToProps)($1)

0 commit comments

Comments
 (0)