Skip to content

Commit

Permalink
fix: fallbackRoute must be of type Route
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispader committed Feb 7, 2025
1 parent 1cb31f1 commit 1d0e09d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {detachReceipt} from '@userActions/IOU';
import CONST from '@src/CONST';
import type {TranslationPaths} from '@src/languages/types';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Route} from '@src/ROUTES';
import ROUTES from '@src/ROUTES';
import type * as OnyxTypes from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
Expand Down Expand Up @@ -86,7 +87,7 @@ type AttachmentModalBaseContentProps = {
/** Optional callback to fire when we want to preview an image and approve it for use. */
onConfirm?: ((file: FileObject) => void) | null;
/** Fallback route when the modal is closed */
fallbackRoute?: string;
fallbackRoute?: Route;
/** Optional callback to fire when we want to do something after attachment carousel changes. */
onCarouselAttachmentChange?: (attachment: Attachment) => void;
/** Determines if the attachment is invalid or not */
Expand Down

0 comments on commit 1d0e09d

Please sign in to comment.