From 813e05e9c2208ca7d6e960d783655b9fb4f42a98 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Wed, 5 Jun 2024 15:03:44 +0100 Subject: [PATCH] refactor(settingsrow): Stylistic code change --- .../Layout/Settings/Item/SettingsItem.jsx | 16 ++++++++-------- .../PreferencesWrapper/PreferencesWrapper.jsx | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Layout/Settings/Item/SettingsItem.jsx b/src/components/Layout/Settings/Item/SettingsItem.jsx index fa1b583e..20854636 100644 --- a/src/components/Layout/Settings/Item/SettingsItem.jsx +++ b/src/components/Layout/Settings/Item/SettingsItem.jsx @@ -1,19 +1,19 @@ -function Row(props) { - const classes = `${props.final ? 'settingsRow settingsNoBorder' : 'settingsRow'} ${props.inactive ? 'preferencesInactive' : ''}`; +const Row = (props) => { + const classes = `${props.final ? 'settingsRow settingsNoBorder' : 'settingsRow'} ${props.inactive ? 'opacity-50 pointer-events-none transition-400 ease-in-out' : ''}`; return
{props.children}
; -} +}; -function Content(props) { +const Content = (props) => { return (
{props.title} {props.subtitle}
); -} +}; -function Action(props) { +const Action = (props) => { return
{props.children}
; -} +}; -export { Row, Content, Action }; +export { Row, Content, Action }; \ No newline at end of file diff --git a/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx b/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx index 1b0bfa21..063065e8 100644 --- a/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx +++ b/src/components/Layout/Settings/PreferencesWrapper/PreferencesWrapper.jsx @@ -16,7 +16,7 @@ const PreferencesWrapper = ({ children, ...props }) => { }); return ( -
+
{props.zoomSetting && (