From 7c1949627ec8c2e77a2be147ef6b2034a6b61eca Mon Sep 17 00:00:00 2001 From: "M. Afifudin" Date: Thu, 25 Apr 2024 04:28:04 +0700 Subject: [PATCH] feat: replace "Functional Component" with "Function component" --- snippets/javascript.json | 16 ++++++++-------- snippets/typescript.json | 24 ++++++++++++------------ src/snippets/emotion.ts | 4 ++-- src/snippets/react-native.ts | 4 ++-- src/snippets/react-ts.ts | 8 ++++---- src/snippets/react.ts | 8 ++++---- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/snippets/javascript.json b/snippets/javascript.json index 1aea909..b452f60 100644 --- a/snippets/javascript.json +++ b/snippets/javascript.json @@ -199,7 +199,7 @@ "}", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,javascriptreact" }, "🟨 reactFnCompExport": { @@ -214,7 +214,7 @@ "export default $1", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,javascriptreact" }, "🟨 reactFnCompNoExport": { @@ -227,7 +227,7 @@ "}", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,javascriptreact" }, "🟨 reactFnCompPropTypes": { @@ -246,7 +246,7 @@ "}", "" ], - "description": "React Functional Component with PropTypes", + "description": "React Function Component with PropTypes", "scope": "javascript,javascriptreact" }, "🟨 reactArrowFnComp": { @@ -647,7 +647,7 @@ "}", "" ], - "description": "React Native Functional Component", + "description": "React Native Function Component", "scope": "javascript,javascriptreact" }, "🟨 reactNativeFnCompExport": { @@ -667,7 +667,7 @@ "export default $1", "" ], - "description": "React Native Functional Component", + "description": "React Native Function Component", "scope": "javascript,javascriptreact" }, "🟨 reactNativeArrowFnComp": { @@ -1124,7 +1124,7 @@ "}", "" ], - "description": "React Functional Component with Emotion CSS", + "description": "React Function Component with Emotion CSS", "scope": "javascript,javascriptreact" }, "🟨 reactFnCompExportEmotion": { @@ -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": { diff --git a/snippets/typescript.json b/snippets/typescript.json index a98fba9..ae68c89 100644 --- a/snippets/typescript.json +++ b/snippets/typescript.json @@ -199,7 +199,7 @@ "}", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactFnCompExport": { @@ -214,7 +214,7 @@ "export default $1", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactFnCompNoExport": { @@ -227,7 +227,7 @@ "}", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactFnCompPropTypes": { @@ -246,7 +246,7 @@ "}", "" ], - "description": "React Functional Component with PropTypes", + "description": "React Function Component with PropTypes", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactArrowFnComp": { @@ -348,7 +348,7 @@ "}", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟦 TS ReactFnCompExport": { @@ -366,7 +366,7 @@ "export default $1", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟦 TS ReactArrowFnComp": { @@ -416,7 +416,7 @@ "}", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟦 TS ReactFnCompExportV2": { @@ -434,7 +434,7 @@ "export default $1", "" ], - "description": "React Functional Component", + "description": "React Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟦 TS ReactArrowFnCompV2": { @@ -935,7 +935,7 @@ "}", "" ], - "description": "React Native Functional Component", + "description": "React Native Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactNativeFnCompExport": { @@ -955,7 +955,7 @@ "export default $1", "" ], - "description": "React Native Functional Component", + "description": "React Native Function Component", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactNativeArrowFnComp": { @@ -1432,7 +1432,7 @@ "}", "" ], - "description": "React Functional Component with Emotion CSS", + "description": "React Function Component with Emotion CSS", "scope": "javascript,typescript,javascriptreact,typescriptreact" }, "🟨 reactFnCompExportEmotion": { @@ -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": { diff --git a/src/snippets/emotion.ts b/src/snippets/emotion.ts index 8c8483d..9608adc 100644 --- a/src/snippets/emotion.ts +++ b/src/snippets/emotion.ts @@ -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 = { @@ -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 = { diff --git a/src/snippets/react-native.ts b/src/snippets/react-native.ts index dc8bcfb..0f5a031 100644 --- a/src/snippets/react-native.ts +++ b/src/snippets/react-native.ts @@ -15,7 +15,7 @@ export const reactNativeFnComp: Snippet = { '\t)', '}', ], - description: 'React Native Functional Component', + description: 'React Native Function Component', }; export const reactNativeFnCompExport: Snippet = { @@ -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 = { diff --git a/src/snippets/react-ts.ts b/src/snippets/react-ts.ts index ff18e0d..25d839b 100644 --- a/src/snippets/react-ts.ts +++ b/src/snippets/react-ts.ts @@ -13,7 +13,7 @@ export const tsReactFnComp: Snippet = { '\t)', '}', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const tsReactFnCompExport: Snippet = { @@ -30,7 +30,7 @@ export const tsReactFnCompExport: Snippet = { '', 'export default $1', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const tsReactArrowFnComp: Snippet = { @@ -77,7 +77,7 @@ export const tsReactFnCompV2: Snippet = { '\t)', '}', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const tsReactFnCompExportV2: Snippet = { @@ -94,7 +94,7 @@ export const tsReactFnCompExportV2: Snippet = { '', 'export default $1', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const tsReactArrowFnCompV2: Snippet = { diff --git a/src/snippets/react.ts b/src/snippets/react.ts index dd48d48..bb702af 100644 --- a/src/snippets/react.ts +++ b/src/snippets/react.ts @@ -10,7 +10,7 @@ export const reactFnComp: Snippet = { '\t)', '}', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const reactFnCompExport: Snippet = { @@ -24,7 +24,7 @@ export const reactFnCompExport: Snippet = { '', 'export default $1', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const reactFnCompNoExport: Snippet = { @@ -36,7 +36,7 @@ export const reactFnCompNoExport: Snippet = { '\t)', '}', ], - description: 'React Functional Component', + description: 'React Function Component', }; export const reactFnCompPropTypes: Snippet = { @@ -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 = {