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:
parent
7dd8628b40
commit
12871e6a77
1 changed files with 4 additions and 4 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue