0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed lint error for unused event type

refs https://github.com/TryGhost/Team/issues/3150
This commit is contained in:
Rishabh 2023-05-19 18:23:56 +05:30
parent 7dd8628b40
commit 12871e6a77

View file

@ -9,7 +9,7 @@ import {TSettingGroupStates} from '../../../admin-x-ds/settings/SettingGroup';
const Analytics: React.FC = () => {
const [currentState, setCurrentState] = useState<TSettingGroupStates>('view');
const handleStateChange = (e: React.ChangeEvent<HTMLInputElement>) => {
const handleStateChange = () => {
setCurrentState('unsaved');
};
@ -57,10 +57,10 @@ const Analytics: React.FC = () => {
]} link={true} />;
return (
<SettingGroup
<SettingGroup
customButtons={currentState === 'unsaved' ? buttons : <></>}
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}