Skip to content

Commit

Permalink
feat: replace "Functional Component" with "Function component"
Browse files Browse the repository at this point in the history
  • Loading branch information
afiiif committed Apr 24, 2024
1 parent 5fc341d commit 7c19496
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions snippets/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"}",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,javascriptreact"
},
"🟨 reactFnCompExport": {
Expand All @@ -214,7 +214,7 @@
"export default $1",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,javascriptreact"
},
"🟨 reactFnCompNoExport": {
Expand All @@ -227,7 +227,7 @@
"}",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,javascriptreact"
},
"🟨 reactFnCompPropTypes": {
Expand All @@ -246,7 +246,7 @@
"}",
""
],
"description": "React Functional Component with PropTypes",
"description": "React Function Component with PropTypes",
"scope": "javascript,javascriptreact"
},
"🟨 reactArrowFnComp": {
Expand Down Expand Up @@ -647,7 +647,7 @@
"}",
""
],
"description": "React Native Functional Component",
"description": "React Native Function Component",
"scope": "javascript,javascriptreact"
},
"🟨 reactNativeFnCompExport": {
Expand All @@ -667,7 +667,7 @@
"export default $1",
""
],
"description": "React Native Functional Component",
"description": "React Native Function Component",
"scope": "javascript,javascriptreact"
},
"🟨 reactNativeArrowFnComp": {
Expand Down Expand Up @@ -1124,7 +1124,7 @@
"}",
""
],
"description": "React Functional Component with Emotion CSS",
"description": "React Function Component with Emotion CSS",
"scope": "javascript,javascriptreact"
},
"🟨 reactFnCompExportEmotion": {
Expand All @@ -1141,7 +1141,7 @@
"export default $1",
""
],
"description": "React Functional Component with Emotion CSS",
"description": "React Function Component with Emotion CSS",
"scope": "javascript,javascriptreact"
},
"🟨 reactArrowFnCompEmotion": {
Expand Down
24 changes: 12 additions & 12 deletions snippets/typescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"}",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactFnCompExport": {
Expand All @@ -214,7 +214,7 @@
"export default $1",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactFnCompNoExport": {
Expand All @@ -227,7 +227,7 @@
"}",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactFnCompPropTypes": {
Expand All @@ -246,7 +246,7 @@
"}",
""
],
"description": "React Functional Component with PropTypes",
"description": "React Function Component with PropTypes",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactArrowFnComp": {
Expand Down Expand Up @@ -348,7 +348,7 @@
"}",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟦 TS ReactFnCompExport": {
Expand All @@ -366,7 +366,7 @@
"export default $1",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟦 TS ReactArrowFnComp": {
Expand Down Expand Up @@ -416,7 +416,7 @@
"}",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟦 TS ReactFnCompExportV2": {
Expand All @@ -434,7 +434,7 @@
"export default $1",
""
],
"description": "React Functional Component",
"description": "React Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟦 TS ReactArrowFnCompV2": {
Expand Down Expand Up @@ -935,7 +935,7 @@
"}",
""
],
"description": "React Native Functional Component",
"description": "React Native Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactNativeFnCompExport": {
Expand All @@ -955,7 +955,7 @@
"export default $1",
""
],
"description": "React Native Functional Component",
"description": "React Native Function Component",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactNativeArrowFnComp": {
Expand Down Expand Up @@ -1432,7 +1432,7 @@
"}",
""
],
"description": "React Functional Component with Emotion CSS",
"description": "React Function Component with Emotion CSS",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactFnCompExportEmotion": {
Expand All @@ -1449,7 +1449,7 @@
"export default $1",
""
],
"description": "React Functional Component with Emotion CSS",
"description": "React Function Component with Emotion CSS",
"scope": "javascript,typescript,javascriptreact,typescriptreact"
},
"🟨 reactArrowFnCompEmotion": {
Expand Down
4 changes: 2 additions & 2 deletions src/snippets/emotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const reactFnCompEmotion: Snippet = {
'\t)',
'}',
],
description: 'React Functional Component with Emotion CSS',
description: 'React Function Component with Emotion CSS',
};

export const reactFnCompExportEmotion: Snippet = {
Expand All @@ -28,7 +28,7 @@ export const reactFnCompExportEmotion: Snippet = {
'',
'export default $1',
],
description: 'React Functional Component with Emotion CSS',
description: 'React Function Component with Emotion CSS',
};

export const reactArrowFnCompEmotion: Snippet = {
Expand Down
4 changes: 2 additions & 2 deletions src/snippets/react-native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const reactNativeFnComp: Snippet = {
'\t)',
'}',
],
description: 'React Native Functional Component',
description: 'React Native Function Component',
};

export const reactNativeFnCompExport: Snippet = {
Expand All @@ -34,7 +34,7 @@ export const reactNativeFnCompExport: Snippet = {
'',
'export default $1',
],
description: 'React Native Functional Component',
description: 'React Native Function Component',
};

export const reactNativeArrowFnComp: Snippet = {
Expand Down
8 changes: 4 additions & 4 deletions src/snippets/react-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const tsReactFnComp: Snippet = {
'\t)',
'}',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const tsReactFnCompExport: Snippet = {
Expand All @@ -30,7 +30,7 @@ export const tsReactFnCompExport: Snippet = {
'',
'export default $1',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const tsReactArrowFnComp: Snippet = {
Expand Down Expand Up @@ -77,7 +77,7 @@ export const tsReactFnCompV2: Snippet = {
'\t)',
'}',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const tsReactFnCompExportV2: Snippet = {
Expand All @@ -94,7 +94,7 @@ export const tsReactFnCompExportV2: Snippet = {
'',
'export default $1',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const tsReactArrowFnCompV2: Snippet = {
Expand Down
8 changes: 4 additions & 4 deletions src/snippets/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const reactFnComp: Snippet = {
'\t)',
'}',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const reactFnCompExport: Snippet = {
Expand All @@ -24,7 +24,7 @@ export const reactFnCompExport: Snippet = {
'',
'export default $1',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const reactFnCompNoExport: Snippet = {
Expand All @@ -36,7 +36,7 @@ export const reactFnCompNoExport: Snippet = {
'\t)',
'}',
],
description: 'React Functional Component',
description: 'React Function Component',
};

export const reactFnCompPropTypes: Snippet = {
Expand All @@ -54,7 +54,7 @@ export const reactFnCompPropTypes: Snippet = {
'\tchildren: PropTypes.node.isRequired',
'}',
],
description: 'React Functional Component with PropTypes',
description: 'React Function Component with PropTypes',
};

export const reactArrowFnComp: Snippet = {
Expand Down

0 comments on commit 7c19496

Please sign in to comment.