From ad34368eb478fc5b9030ce0f2103684b32cdd583 Mon Sep 17 00:00:00 2001 From: cdOut <88325488+cdOut@users.noreply.github.com> Date: Thu, 28 Dec 2023 08:20:57 +0100 Subject: [PATCH] fix typescript errors --- src/components/BlockingViews/BlockingView.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/BlockingViews/BlockingView.tsx b/src/components/BlockingViews/BlockingView.tsx index 20a065f1a76c..3a038c58d886 100644 --- a/src/components/BlockingViews/BlockingView.tsx +++ b/src/components/BlockingViews/BlockingView.tsx @@ -1,9 +1,8 @@ import React from 'react'; -import {View} from 'react-native'; +import {ImageSourcePropType, View} from 'react-native'; import {SvgProps} from 'react-native-svg'; import AutoEmailLink from '@components/AutoEmailLink'; import Icon from '@components/Icon'; -import sourcePropTypes from '@components/Image/sourcePropTypes'; import Text from '@components/Text'; import TextLink from '@components/TextLink'; import useLocalize from '@hooks/useLocalize'; @@ -14,7 +13,7 @@ import {TranslationPaths} from '@src/languages/types'; type BlockingViewProps = { /** Expensicon for the page */ - icon: React.FC; + icon: React.FC | ImageSourcePropType; /** Color for the icon (should be from theme) */ iconColor?: string;