aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Form
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-05 12:00:43 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-05 12:00:43 +0100
commit0a954547b2bb8136c97f3a697274319751e046ed (patch)
treec45e59bebc2b3fdebec8be4f5778ddf5cb6ce2f4 /src/components/Form
parent71d133bb1c73031abbf4869bdd938e583b397773 (diff)
chore: replace theme button with settings
I plan to add more user settings so theme options should be inside settings.
Diffstat (limited to 'src/components/Form')
-rw-r--r--src/components/Form/Form.module.scss7
-rw-r--r--src/components/Form/Form.tsx2
2 files changed, 3 insertions, 6 deletions
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 (