diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-20 18:11:16 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-20 18:11:16 -0700 |
commit | f2bd440c7fdf8857a5704f214d96aba3345a14e7 (patch) | |
tree | 1b741f3d66fa7403ca81631b782617897045c841 /modern/src/attributes/useCommandAttributes.js | |
parent | 60f74cdaa7f737eb4749e44333a7c7166dd6db6b (diff) | |
download | trackermap-web-f2bd440c7fdf8857a5704f214d96aba3345a14e7.tar.gz trackermap-web-f2bd440c7fdf8857a5704f214d96aba3345a14e7.tar.bz2 trackermap-web-f2bd440c7fdf8857a5704f214d96aba3345a14e7.zip |
Add saved commands
Diffstat (limited to 'modern/src/attributes/useCommandAttributes.js')
-rw-r--r-- | modern/src/attributes/useCommandAttributes.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modern/src/attributes/useCommandAttributes.js b/modern/src/attributes/useCommandAttributes.js new file mode 100644 index 00000000..1212d283 --- /dev/null +++ b/modern/src/attributes/useCommandAttributes.js @@ -0,0 +1,11 @@ +import { useMemo } from 'react'; + +export default (t) => useMemo(() => ({ + custom: [ + { + key: 'data', + name: t('commandData'), + type: 'string', + }, + ], +}), [t]); |