fleet/.vscode/typescriptreact.code-snippets
Gabriel Hernandez b8fa08b53c
implement mdm scripts page UI (#10092)
relates to #9831

Implements the mdm mac OS scripts UI. This is just the UI atm and is not
accessible in the application at the moment.
2023-03-06 15:03:48 +00:00

29 lines
723 B
Plaintext

{
"Fleet - React stateless component with TS": {
"scope": "typescriptreact",
"prefix": "rtsc",
"body": [
"import React from \"react\";",
"",
"const baseClass = \"${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}\";",
"",
"interface I${TM_FILENAME_BASE}Props {}",
"",
"const $TM_FILENAME_BASE = ({}: I${TM_FILENAME_BASE}Props) => {",
"\treturn <div className={baseClass}></div>;",
"};",
"",
"export default $TM_FILENAME_BASE;",
"",
],
"description": "Creates a React stateless component with the typescrip interface setup"
},
"Fleet - baseClass classname": {
"scope": "typescriptreact,javascriptreact",
"prefix": "bc",
"body": [
"className={`\\${baseClass}__$0`}"
]
}
}