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 Analytics: React.FC = () => {
|
||||||
const [currentState, setCurrentState] = useState<TSettingGroupStates>('view');
|
const [currentState, setCurrentState] = useState<TSettingGroupStates>('view');
|
||||||
|
|
||||||
const handleStateChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
const handleStateChange = () => {
|
||||||
setCurrentState('unsaved');
|
setCurrentState('unsaved');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -57,10 +57,10 @@ const Analytics: React.FC = () => {
|
||||||
]} link={true} />;
|
]} link={true} />;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingGroup
|
<SettingGroup
|
||||||
customButtons={currentState === 'unsaved' ? buttons : <></>}
|
customButtons={currentState === 'unsaved' ? buttons : <></>}
|
||||||
description='Decide what data you collect from your members'
|
description='Decide what data you collect from your members'
|
||||||
state={currentState}
|
state={currentState}
|
||||||
title='Analytics'
|
title='Analytics'
|
||||||
>
|
>
|
||||||
{inputs}
|
{inputs}
|
||||||
|
|
Loading…
Add table
Reference in a new issue