From a6ff5eee45215effb3344cb5d631a27a7c0369aa Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 22 Sep 2023 19:34:01 +0200 Subject: refactor(components): rewrite form components --- src/components/organisms/toolbar/settings.tsx | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/components/organisms/toolbar/settings.tsx') diff --git a/src/components/organisms/toolbar/settings.tsx b/src/components/organisms/toolbar/settings.tsx index 8a4d4a9..3f328a5 100644 --- a/src/components/organisms/toolbar/settings.tsx +++ b/src/components/organisms/toolbar/settings.tsx @@ -3,14 +3,13 @@ import { useIntl } from 'react-intl'; import { BooleanField, type BooleanFieldProps, Cog } from '../../atoms'; import { FlippingLabel } from '../../molecules'; import { SettingsModal, type SettingsModalProps } from '../modals'; -import settingsStyles from './settings.module.scss'; -import sharedStyles from './toolbar-items.module.scss'; +import styles from './toolbar-items.module.scss'; export type SettingsProps = SettingsModalProps & { /** * The button state. */ - isActive: BooleanFieldProps['checked']; + isActive: BooleanFieldProps['isChecked']; /** * A callback function to handle button state. */ @@ -24,10 +23,9 @@ const SettingsWithRef: ForwardRefRenderFunction< { ackeeStorageKey, className = '', - isActive, + isActive = false, motionStorageKey, setIsActive, - tooltipClassName = '', }, ref ) => { @@ -45,11 +43,11 @@ const SettingsWithRef: ForwardRefRenderFunction< }); return ( -
+
@@ -65,9 +63,8 @@ const SettingsWithRef: ForwardRefRenderFunction<
); -- cgit v1.2.3