aboutsummaryrefslogtreecommitdiff
path: root/src/services/attributes_helper
diff options
context:
space:
mode:
authortusooa <tusooa@kazv.moe>2023-01-21 01:28:43 -0500
committertusooa <tusooa@kazv.moe>2023-01-21 01:28:43 -0500
commit72cb9e8bdbd41b66f72f8dd0dcd52cc04c7a2245 (patch)
tree89eefbc46533aac8c7af1c490a2228fccaa1b44a /src/services/attributes_helper
parent6235af4592c52a657415ffae772bd83ec106bc13 (diff)
Make all emoji inputs screen-reader-friendly
Diffstat (limited to 'src/services/attributes_helper')
-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 }