-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnippets.code-snippets
47 lines (47 loc) · 1.24 KB
/
snippets.code-snippets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"useTranslation": {
"prefix": "utrans",
"body": [
"const { t } = useTranslation('${1|home,history,profile,common,trainingCreation, exerciseCreation|}');"
],
"description": "useTranslation"
},
"react jsx translation": {
"prefix": "rtrans",
"body": ["{t('$1.$2')}"],
"description": "react jsx translation"
},
"ts translation": {
"prefix": "ttrans",
"body": ["t('$1.$2')"],
"description": "ts translation"
},
"useStore": {
"prefix": "ustore",
"body": ["const store = useStore()"],
"description": "useStore"
},
"Native Styled Component": {
"prefix": "nsc",
"body": ["const $1 = styled.$2(({ theme }) => ({", " $3", "}));"],
"description": "Native Styled Component"
},
"Custom Styled Component": {
"prefix": "csc",
"body": ["const $1 = styled($2)(({ theme }) => ({", " $3", "}));"],
"description": "Custom Styled Component"
},
"Typescript component ": {
"prefix": "tc",
"body": [
"import React, { FunctionComponent } from 'react';",
"",
"interface Props {}",
"",
"export const ${1:$TM_FILENAME_BASE}: FunctionComponent<Props> = () => {",
" return ($2);",
"};"
],
"description": "Typescript component "
}
}