diff --git a/client/js/common/class-object.js b/client/js/common/class-object.js deleted file mode 100644 index 7bdd32cd1..000000000 --- a/client/js/common/class-object.js +++ /dev/null @@ -1,8 +0,0 @@ -// License: LGPL-3.0-or-later -const R = require('ramda') - -module.exports = (classes='') => R.reduce( - (a, b) => {a[b] = true; return a} - , {} - , R.drop(1, classes.split('.'))) - diff --git a/client/js/components/number-input.js b/client/js/components/number-input.js deleted file mode 100644 index da5ff94c9..000000000 --- a/client/js/components/number-input.js +++ /dev/null @@ -1,17 +0,0 @@ -// License: LGPL-3.0-or-later -const h = require('flimflam/h') -const classObject = require('../common/class-object') - -module.exports = (name, placeholder, value, classes) => { -return h('input.max-width-2', { - props: { - type: 'number' - , - , name - , placeholder - , value - } - , class: classObject(classes) - }) -} - diff --git a/client/js/components/text-input.js b/client/js/components/text-input.js index 75cf386da..97852f415 100644 --- a/client/js/components/text-input.js +++ b/client/js/components/text-input.js @@ -1,6 +1,5 @@ // License: LGPL-3.0-or-later const h = require('flimflam/h') -const classObject = require('../common/class-object') module.exports = (name, placeholder, value, classes) => { return h('input.max-width-2', { @@ -10,6 +9,5 @@ return h('input.max-width-2', { , placeholder , value } - , class: classObject(classes) }) } diff --git a/client/js/components/textarea.js b/client/js/components/textarea.js deleted file mode 100644 index cd00057ce..000000000 --- a/client/js/components/textarea.js +++ /dev/null @@ -1,15 +0,0 @@ -// License: LGPL-3.0-or-later -const h = require('flimflam/h') -const classObject = require('../common/class-object') - -module.exports = (name, placeholder, value, classes) => { -return h('textarea.max-width-2', { - props: { - name - , placeholder - , value - } - , class: classObject(classes) - }) -} -