mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added missing semicolons (#18670)
Co-authored-by: Daniel Lockyer <daniellockyer@fastmail.com>
This commit is contained in:
parent
44b4b169a9
commit
c404784573
2 changed files with 3 additions and 4 deletions
|
@ -8,7 +8,7 @@ import {Transition} from '@headlessui/react';
|
|||
import {useCallback, useEffect, useRef, useState} from 'react';
|
||||
import {usePopupOpen} from '../../../utils/hooks';
|
||||
|
||||
type Progress = 'default' | 'sending' | 'sent' | 'error'
|
||||
type Progress = 'default' | 'sending' | 'sent' | 'error';
|
||||
export type SubmitSize = 'small' | 'medium' | 'large';
|
||||
type FormEditorProps = {
|
||||
submit: (data: {html: string}) => Promise<void>;
|
||||
|
|
|
@ -11,7 +11,7 @@ type Props = {
|
|||
close: () => void;
|
||||
closeIfNotChanged: () => void;
|
||||
submitText: JSX.Element;
|
||||
submitSize: SubmitSize
|
||||
submitSize: SubmitSize;
|
||||
};
|
||||
const SecundaryForm: React.FC<Props> = ({editor, submit, close, closeIfNotChanged, submitText, submitSize}) => {
|
||||
const {dispatchAction, secundaryFormCount} = useAppContext();
|
||||
|
@ -19,7 +19,6 @@ const SecundaryForm: React.FC<Props> = ({editor, submit, close, closeIfNotChange
|
|||
// Keep track of the amount of open forms
|
||||
useEffect(() => {
|
||||
dispatchAction('increaseSecundaryFormCount', {});
|
||||
|
||||
return () => {
|
||||
dispatchAction('decreaseSecundaryFormCount', {});
|
||||
};
|
||||
|
@ -33,7 +32,7 @@ const SecundaryForm: React.FC<Props> = ({editor, submit, close, closeIfNotChange
|
|||
|
||||
if (secundaryFormCount > 1) {
|
||||
closeIfNotChanged();
|
||||
}
|
||||
};
|
||||
}, [secundaryFormCount]);
|
||||
|
||||
const reduced = isMobile();
|
||||
|
|
Loading…
Reference in a new issue