diff options
| author | tusooa <tusooa@kazv.moe> | 2023-01-21 01:28:43 -0500 |
|---|---|---|
| committer | tusooa <tusooa@kazv.moe> | 2023-01-21 01:28:43 -0500 |
| commit | 72cb9e8bdbd41b66f72f8dd0dcd52cc04c7a2245 (patch) | |
| tree | 89eefbc46533aac8c7af1c490a2228fccaa1b44a /src/services/attributes_helper | |
| parent | 6235af4592c52a657415ffae772bd83ec106bc13 (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.js | 8 |
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 } |
