From 72cb9e8bdbd41b66f72f8dd0dcd52cc04c7a2245 Mon Sep 17 00:00:00 2001 From: tusooa Date: Sat, 21 Jan 2023 01:28:43 -0500 Subject: Make all emoji inputs screen-reader-friendly --- src/services/attributes_helper/attributes_helper.service.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/services/attributes_helper/attributes_helper.service.js (limited to 'src/services/attributes_helper/attributes_helper.service.js') 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 } -- cgit v1.2.3-70-g09d2