Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Forms: Update dataview actions
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import {
* Types
*/
import type { FormResponse } from '../../../types';
import type { Registry } from '../../inbox/dataviews/types';

type ResponseNavigationProps = {
onActionComplete?: ( FormResponse ) => void;
onActionComplete?: ( response: FormResponse ) => void;
response: FormResponse;
};

Expand All @@ -37,7 +38,7 @@ const ResponseActions = ( {
const [ isDeleting, setIsDeleting ] = useState( false );
const [ isTogglingReadStatus, setIsTogglingReadStatus ] = useState( false );

const registry = useRegistry();
const registry = useRegistry() as unknown as Registry;

const handleMarkAsSpam = useCallback( async () => {
onActionComplete?.( response );
Expand Down
Loading
Loading