0
Fork 0
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:
Rene AHONBO 2023-11-15 11:19:50 +00:00 committed by GitHub
parent 44b4b169a9
commit c404784573
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -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>;

View file

@ -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();