From 0a954547b2bb8136c97f3a697274319751e046ed Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 5 Jan 2022 12:00:43 +0100 Subject: chore: replace theme button with settings I plan to add more user settings so theme options should be inside settings. --- src/components/Form/Form.module.scss | 7 ++----- src/components/Form/Form.tsx | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/components/Form') diff --git a/src/components/Form/Form.module.scss b/src/components/Form/Form.module.scss index 25fce19..bfb009e 100644 --- a/src/components/Form/Form.module.scss +++ b/src/components/Form/Form.module.scss @@ -3,14 +3,11 @@ .wrapper { width: 100%; - &--search { + &--search, + &--theme { display: flex; flex-flow: row nowrap; } - - &--theme { - line-height: 1; - } } .item { diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx index 048219c..74a4efb 100644 --- a/src/components/Form/Form.tsx +++ b/src/components/Form/Form.tsx @@ -10,7 +10,7 @@ const Form = ({ submitHandler: any; modifier?: string; }) => { - const withModifier = modifier ? `wrapper--${modifier}` : ''; + const withModifier = modifier ? styles[`wrapper--${modifier}`] : ''; const classes = `${styles.wrapper} ${withModifier}`; return ( -- cgit v1.2.3