From aa959bc2d5558446d3a66dfea37d397fa36bbf76 Mon Sep 17 00:00:00 2001 From: Leandro Saraiva Date: Sun, 4 Apr 2021 03:05:41 -0300 Subject: [PATCH] alterando export do snippet rfc de export default para export --- snippets/snippets-ts.json | 10 ++++------ snippets/snippets.json | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/snippets/snippets-ts.json b/snippets/snippets-ts.json index 624525a..2321e11 100644 --- a/snippets/snippets-ts.json +++ b/snippets/snippets-ts.json @@ -11,7 +11,6 @@ ], "description": "Create ReactJS Styled Components file" }, - "componentFunctionalTypescript": { "prefix": "rfc", "body": [ @@ -19,12 +18,11 @@ "", "// import { Container } from './styles';", "", - "const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}: React.FC = () => {", + "export const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}: React.FC = () => {", " return
;", "}", - "", - "export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};" + "" ], "description": "Create ReactJS Functional Component Typescript" - } -} + } +} \ No newline at end of file diff --git a/snippets/snippets.json b/snippets/snippets.json index f305d09..ae81adb 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -11,7 +11,6 @@ ], "description": "Create ReactJS Styled Components file" }, - "componentFunctionalTypescript": { "prefix": "rfc", "body": [ @@ -19,12 +18,11 @@ "", "// import { Container } from './styles';", "", - "function ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}() {", + "export function ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}() {", " return
;", "}", - "", - "export default ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}};" + "" ], "description": "Create ReactJS Functional Component Typescript" - } -} + } +} \ No newline at end of file