mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed lint errors
no refs
This commit is contained in:
parent
950495c836
commit
fc0ef9d164
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue