mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +03:00
Fixed lint errors
no refs
This commit is contained in:
parent
950495c836
commit
fc0ef9d164
@ -74,7 +74,7 @@ export const SwitchStyles = `
|
||||
}
|
||||
`;
|
||||
|
||||
function Switch({id, label='', onToggle, checked = false}) {
|
||||
function Switch({id, label = '', onToggle, checked = false}) {
|
||||
const {action} = useContext(AppContext);
|
||||
const [isChecked, setIsChecked] = useState(checked);
|
||||
const isActionChanged = ['updateNewsletter:failed', 'updateNewsletter:success'].includes(action);
|
||||
|
Loading…
Reference in New Issue
Block a user