diff --git a/snippets/rjsx-mode/Redux/rcredux b/snippets/rjsx-mode/Redux/rcredux index 83a6a10..903dd92 100644 --- a/snippets/rjsx-mode/Redux/rcredux +++ b/snippets/rjsx-mode/Redux/rcredux @@ -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}}) \ No newline at end of file +export default connect(mapStateToProps, mapDispatchToProps)($1) \ No newline at end of file diff --git a/snippets/rjsx-mode/Redux/rncredux b/snippets/rjsx-mode/Redux/rncredux index 4cb3321..66fea00 100644 --- a/snippets/rjsx-mode/Redux/rncredux +++ b/snippets/rjsx-mode/Redux/rncredux @@ -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}}) \ No newline at end of file +export default connect(mapStateToProps, mapDispatchToProps)($1) \ No newline at end of file