@@ -44,7 +44,7 @@ const reactClassComponent: ComponentsSnippet = {
4444 body : [
4545 ...reactComponent ,
4646 '' ,
47- `export default class ${ Placeholders . FileName } extends Component {` ,
47+ `export default class ${ Placeholders . ComponentName } extends Component {` ,
4848 ...innerComponentReturn ,
4949 '}' ,
5050 '' ,
@@ -58,7 +58,7 @@ const reactClassExportComponent: ComponentsSnippet = {
5858 body : [
5959 ...reactComponent ,
6060 '' ,
61- `export class ${ Placeholders . FileName } extends Component {` ,
61+ `export class ${ Placeholders . ComponentName } extends Component {` ,
6262 ...innerComponentReturn ,
6363 '}' ,
6464 ...exportDefault ,
@@ -72,7 +72,7 @@ const reactFunctionalExportComponent: ComponentsSnippet = {
7272 body : [
7373 ...react ,
7474 '' ,
75- `function ${ Placeholders . FileName } () {` ,
75+ `function ${ Placeholders . ComponentName } () {` ,
7676 ...innerComponent ,
7777 '}' ,
7878 ...exportDefault ,
@@ -86,7 +86,7 @@ const reactFunctionalComponent: ComponentsSnippet = {
8686 body : [
8787 ...react ,
8888 '' ,
89- `export default function ${ Placeholders . FileName } () {` ,
89+ `export default function ${ Placeholders . ComponentName } () {` ,
9090 ...innerComponent ,
9191 '}' ,
9292 '' ,
@@ -100,11 +100,11 @@ const reactFunctionalComponentWithPropTypes: ComponentsSnippet = {
100100 body : [
101101 ...reactPropTypes ,
102102 '' ,
103- `function ${ Placeholders . FileName } (props) {` ,
103+ `function ${ Placeholders . ComponentName } (props) {` ,
104104 ...innerComponent ,
105105 '}' ,
106106 '' ,
107- `${ Placeholders . FileName } .propTypes = {}` ,
107+ `${ Placeholders . ComponentName } .propTypes = {}` ,
108108 ...exportDefault ,
109109 '' ,
110110 ] ,
@@ -118,7 +118,7 @@ const reactArrowFunctionExportComponent: ComponentsSnippet = {
118118 body : [
119119 ...react ,
120120 '' ,
121- `const ${ Placeholders . FileName } = () => {` ,
121+ `const ${ Placeholders . ComponentName } = () => {` ,
122122 ...innerComponent ,
123123 '}' ,
124124 ...exportDefault ,
@@ -133,7 +133,7 @@ const reactArrowFunctionComponent: ComponentsSnippet = {
133133 body : [
134134 ...react ,
135135 '' ,
136- `export const ${ Placeholders . FileName } = () => {` ,
136+ `export const ${ Placeholders . ComponentName } = () => {` ,
137137 ...innerComponent ,
138138 '}' ,
139139 '' ,
@@ -148,11 +148,11 @@ const reactArrowFunctionComponentWithPropTypes: ComponentsSnippet = {
148148 body : [
149149 ...reactPropTypes ,
150150 '' ,
151- `const ${ Placeholders . FileName } = props => {` ,
151+ `const ${ Placeholders . ComponentName } = props => {` ,
152152 ...innerComponent ,
153153 '}' ,
154154 '' ,
155- `${ Placeholders . FileName } .propTypes = {}` ,
155+ `${ Placeholders . ComponentName } .propTypes = {}` ,
156156 ...exportDefault ,
157157 ] ,
158158 description :
@@ -166,7 +166,7 @@ const reactClassExportComponentWithPropTypes: ComponentsSnippet = {
166166 "import PropTypes from 'prop-types'" ,
167167 ...reactComponent ,
168168 '' ,
169- `export class ${ Placeholders . FileName } extends Component {` ,
169+ `export class ${ Placeholders . ComponentName } extends Component {` ,
170170 ' static propTypes = {}' ,
171171 '' ,
172172 ...innerComponentReturn ,
@@ -182,7 +182,7 @@ const reactClassPureComponent: ComponentsSnippet = {
182182 body : [
183183 ...reactPureComponent ,
184184 '' ,
185- `export default class ${ Placeholders . FileName } extends PureComponent {` ,
185+ `export default class ${ Placeholders . ComponentName } extends PureComponent {` ,
186186 ...innerComponentReturn ,
187187 '}' ,
188188 '' ,
@@ -196,7 +196,7 @@ const reactClassExportPureComponent: ComponentsSnippet = {
196196 body : [
197197 ...reactPureComponent ,
198198 '' ,
199- `export class ${ Placeholders . FileName } extends PureComponent {` ,
199+ `export class ${ Placeholders . ComponentName } extends PureComponent {` ,
200200 ...innerComponentReturn ,
201201 '}' ,
202202 ...exportDefault ,
@@ -212,7 +212,7 @@ const reactClassPureComponentWithPropTypes: ComponentsSnippet = {
212212 "import PropTypes from 'prop-types'" ,
213213 ...reactPureComponent ,
214214 '' ,
215- `export default class ${ Placeholders . FileName } extends PureComponent {` ,
215+ `export default class ${ Placeholders . ComponentName } extends PureComponent {` ,
216216 ' static propTypes = {}' ,
217217 '' ,
218218 ...innerComponentReturn ,
@@ -228,7 +228,7 @@ const reactFunctionMemoComponent: ComponentsSnippet = {
228228 body : [
229229 ...reactWithMemo ,
230230 '' ,
231- `const ${ Placeholders . FileName } = memo(() => {` ,
231+ `const ${ Placeholders . ComponentName } = memo(() => {` ,
232232 ...innerComponent ,
233233 '})' ,
234234 ...exportDefault ,
@@ -243,11 +243,11 @@ const reactFunctionMemoComponentWithPropTypes: ComponentsSnippet = {
243243 "import PropTypes from 'prop-types'" ,
244244 ...reactWithMemo ,
245245 '' ,
246- `const ${ Placeholders . FileName } = memo((props) => {` ,
246+ `const ${ Placeholders . ComponentName } = memo((props) => {` ,
247247 ...innerComponent ,
248248 '})' ,
249249 '' ,
250- `${ Placeholders . FileName } .propTypes = {}` ,
250+ `${ Placeholders . ComponentName } .propTypes = {}` ,
251251 ...exportDefault ,
252252 ] ,
253253 description :
@@ -261,7 +261,7 @@ const reactClassComponentPropTypes: ComponentsSnippet = {
261261 "import PropTypes from 'prop-types'" ,
262262 ...reactComponent ,
263263 '' ,
264- `export default class ${ Placeholders . FileName } extends Component {` ,
264+ `export default class ${ Placeholders . ComponentName } extends Component {` ,
265265 ` static propTypes = {${ Placeholders . SecondTab } : ${ Placeholders . ThirdTab } }` ,
266266 '' ,
267267 ...innerComponentReturn ,
@@ -278,7 +278,7 @@ const reactClassComponentRedux: ComponentsSnippet = {
278278 body : [
279279 ...reactComponentWithReduxConnect ,
280280 '' ,
281- `export class ${ Placeholders . FileName } extends Component {` ,
281+ `export class ${ Placeholders . ComponentName } extends Component {` ,
282282 ...innerComponentReturn ,
283283 '}' ,
284284 ...reduxComponentExport ,
@@ -294,7 +294,7 @@ const reactClassComponentReduxPropTypes: ComponentsSnippet = {
294294 "import PropTypes from 'prop-types'" ,
295295 ...reactComponentWithReduxConnect ,
296296 '' ,
297- `export class ${ Placeholders . FileName } extends Component {` ,
297+ `export class ${ Placeholders . ComponentName } extends Component {` ,
298298 ' static propTypes = {' ,
299299 ` ${ Placeholders . SecondTab } : ${ Placeholders . ThirdTab } ` ,
300300 ' }' ,
@@ -313,7 +313,7 @@ const reactFunctionalComponentRedux: ComponentsSnippet = {
313313 body : [
314314 ...reactWithReduxConnect ,
315315 '' ,
316- `export const ${ Placeholders . FileName } = (props) => {` ,
316+ `export const ${ Placeholders . ComponentName } = (props) => {` ,
317317 ...innerComponent ,
318318 '}' ,
319319 ...reduxComponentExport ,
@@ -329,11 +329,11 @@ const reactFunctionalComponentReduxPropTypes: ComponentsSnippet = {
329329 "import PropTypes from 'prop-types'" ,
330330 ...reactWithReduxConnect ,
331331 '' ,
332- `export const ${ Placeholders . FileName } = (props) => {` ,
332+ `export const ${ Placeholders . ComponentName } = (props) => {` ,
333333 ...innerComponent ,
334334 '}' ,
335335 '' ,
336- `${ Placeholders . FileName } .propTypes = {` ,
336+ `${ Placeholders . ComponentName } .propTypes = {` ,
337337 ` ${ Placeholders . SecondTab } : PropTypes.${ Placeholders . ThirdTab } ` ,
338338 '}' ,
339339 ...reduxComponentExport ,
0 commit comments