aboutsummaryrefslogtreecommitdiff
path: root/src/services/attributes_helper/attributes_helper.service.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2023-01-28 23:04:59 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2023-01-28 23:04:59 +0000
commitf229c4a106b574e8a3de38fe06ef84dc11493fad (patch)
tree54e12de554f5203e5b39b69fc8a52f3d54d36653 /src/services/attributes_helper/attributes_helper.service.js
parentaf220924723676d79431ab9acc03bd4de082003d (diff)
parent5f12c3ae76b82afd2040f2bcc83bf2eda5c4ff91 (diff)
Merge branch 'from/develop/tusooa/autocomplete-accessibility' into 'develop'
Autocomplete accessibility Closes #1219 See merge request pleroma/pleroma-fe!1771
Diffstat (limited to 'src/services/attributes_helper/attributes_helper.service.js')
-rw-r--r--src/services/attributes_helper/attributes_helper.service.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/services/attributes_helper/attributes_helper.service.js b/src/services/attributes_helper/attributes_helper.service.js
new file mode 100644
index 00000000..74d3323c
--- /dev/null
+++ b/src/services/attributes_helper/attributes_helper.service.js
@@ -0,0 +1,8 @@
+import { kebabCase } from 'lodash'
+
+const propsToNative = props => Object.keys(props).reduce((acc, cur) => {
+ acc[kebabCase(cur)] = props[cur]
+ return acc
+}, {})
+
+export { propsToNative }