From 8d664e3bac431a1b2f6379f6b0951c9cf1e5e766 Mon Sep 17 00:00:00 2001 From: Arthur Green Date: Sun, 22 Oct 2023 03:42:53 +0400 Subject: [PATCH] style: change classnames code style (#24) --- src/components/button/Button.tsx | 6 ++---- src/components/button/button.module.scss | 22 ++++++++++++---------- src/components/form/Form.tsx | 5 ++++- src/components/form/form.module.scss | 8 +++++++- src/components/input/Input.tsx | 8 +++++--- 5 files changed, 30 insertions(+), 19 deletions(-) diff --git a/src/components/button/Button.tsx b/src/components/button/Button.tsx index 93d1c75..c9dbfa8 100644 --- a/src/components/button/Button.tsx +++ b/src/components/button/Button.tsx @@ -32,13 +32,11 @@ export const Button = ({ className, ...props }: ButtonProps) => { - const mode = primary ? classes['btn--primary'] : classes['btn--secondary']; + const mode = primary ? classes.primary : ''; return (