From 750d033da20f62336b310f8392d3221e47189870 Mon Sep 17 00:00:00 2001 From: Joozty <32jojo32@gmail.com> Date: Mon, 6 Jan 2020 15:13:52 +0100 Subject: [PATCH] Remove deprecated `withModule` method --- src/elements/forms/text-field.jsx | 2 +- src/elements/label.jsx | 2 +- src/utils/class-names.js | 10 +--------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/elements/forms/text-field.jsx b/src/elements/forms/text-field.jsx index 28aa5464..5cb54068 100644 --- a/src/elements/forms/text-field.jsx +++ b/src/elements/forms/text-field.jsx @@ -39,7 +39,7 @@ const TextField = ({ className={classNames // prevents passing 'default' to the class list .use('container', { [size]: size !== 'default' }, className) - .withModule(textFieldClassNames)} + .from(textFieldClassNames)} > diff --git a/src/elements/label.jsx b/src/elements/label.jsx index 2b63d030..35084afa 100644 --- a/src/elements/label.jsx +++ b/src/elements/label.jsx @@ -15,7 +15,7 @@ const Label = ({ {children} diff --git a/src/utils/class-names.js b/src/utils/class-names.js index 421fa54e..610a9c8f 100644 --- a/src/utils/class-names.js +++ b/src/utils/class-names.js @@ -26,13 +26,6 @@ class ClassNames { return this } - /** - * @deprecated - */ - withModule(...args) { - return this.from(...args) - } - join(className) { this.appendix = className return this @@ -53,7 +46,6 @@ const from = (...args) => new ClassNames().from(...args) ClassNames.use = use ClassNames.from = from -ClassNames.withModule = from export default ClassNames -export { use, from, from as withModule } +export { use, from }