From 12871e6a7734eaedae8b4507584cc0d136a3437c Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 19 May 2023 18:23:56 +0530 Subject: [PATCH] Fixed lint error for unused event type refs https://github.com/TryGhost/Team/issues/3150 --- .../src/components/settings/membership/Analytics.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghost/admin-x-settings/src/components/settings/membership/Analytics.tsx b/ghost/admin-x-settings/src/components/settings/membership/Analytics.tsx index 7a1e689887..53a411e40c 100644 --- a/ghost/admin-x-settings/src/components/settings/membership/Analytics.tsx +++ b/ghost/admin-x-settings/src/components/settings/membership/Analytics.tsx @@ -9,7 +9,7 @@ import {TSettingGroupStates} from '../../../admin-x-ds/settings/SettingGroup'; const Analytics: React.FC = () => { const [currentState, setCurrentState] = useState('view'); - const handleStateChange = (e: React.ChangeEvent) => { + const handleStateChange = () => { setCurrentState('unsaved'); }; @@ -57,10 +57,10 @@ const Analytics: React.FC = () => { ]} link={true} />; return ( - } - description='Decide what data you collect from your members' - state={currentState} + description='Decide what data you collect from your members' + state={currentState} title='Analytics' > {inputs}